Re: [Mesa-dev] [PATCH] anv: destroy descriptor sets when pool gets reset

2019-03-11 Thread Tapani Pälli
Makes sense, sorry I missed this one; Reviewed-by: Tapani Pälli On 3/11/19 7:33 PM, Juan A. Suarez Romero wrote: As stated in Vulkan spec: "Resetting a descriptor pool recycles all of the resources from all of the descriptor sets allocated from the descriptor pool back to the

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Alyssa Rosenzweig
> The first patch was fine. Just not the second. First patch is a duplicate of the linked patch. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Jason Ekstrand
On March 11, 2019 22:17:38 Alyssa Rosenzweig wrote: [1] https://patchwork.freedesktop.org/patch/291616/ Ah-ha, somebody who knows what they're doing. That's good; ignore this series then :) The first patch was fine. Just not the second. --- So is this a "no" for the deleting

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Alyssa Rosenzweig
> [1] https://patchwork.freedesktop.org/patch/291616/ Ah-ha, somebody who knows what they're doing. That's good; ignore this series then :) --- So is this a "no" for the deleting ~/mesa/src idea? ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Timothy Arceri
On 12/3/19 2:09 pm, Alyssa Rosenzweig wrote: A better fix might be to delete the Mesa src tree, that should fix up any warnings :P Huh, so it does! No regressions on dEQP, possibly since all the tests were failing to begin with on Panfrost. I can only assume this was sent out by mistake?

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Alyssa Rosenzweig
> A better fix might be to delete the Mesa src tree, that should fix up any > warnings :P Huh, so it does! No regressions on dEQP, possibly since all the tests were failing to begin with on Panfrost. > I can only assume this was sent out by mistake? This was sent out by "I don't know what I'm

Re: [Mesa-dev] [PATCH] nir: silence a couple new compiler warnings

2019-03-11 Thread Timothy Arceri
On 12/3/19 1:50 pm, Brian Paul wrote: Thanks, but it looks like Alyssa's patches may be better. -Brian The second patch looks really wrong. Seems like a mistake to me. On 03/11/2019 08:33 PM, Timothy Arceri wrote: Thanks Reviewed-by: Timothy Arceri On 12/3/19 1:12 pm, Brian Paul wrote:

Re: [Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Timothy Arceri
On 12/3/19 1:30 pm, Alyssa Rosenzweig wrote: Fixes a gcc warning. Signed-off-by: Alyssa Rosenzweig --- src/compiler/nir/nir_opt_loop_unroll.c | 4 1 file changed, 4 deletions(-) diff --git a/src/compiler/nir/nir_opt_loop_unroll.c b/src/compiler/nir/nir_opt_loop_unroll.c index

Re: [Mesa-dev] [PATCH] nir: silence a couple new compiler warnings

2019-03-11 Thread Brian Paul
Thanks, but it looks like Alyssa's patches may be better. -Brian On 03/11/2019 08:33 PM, Timothy Arceri wrote: Thanks Reviewed-by: Timothy Arceri On 12/3/19 1:12 pm, Brian Paul wrote: [33/630] Compiling C object 'src/compiler/nir/nir@sta/nir_loop_analyze.c.o'.

Re: [Mesa-dev] [PATCH 1/2] nir: Add missing parentheses

2019-03-11 Thread Jason Ekstrand
This patch is Reviewed-by: Jason Ekstrand On March 11, 2019 21:31:03 Alyssa Rosenzweig wrote: Fixes a gcc warning (and a theoretical NULL dereference error, though I suppose shortcircuiting avoids that). Signed-off-by: Alyssa Rosenzweig --- src/compiler/nir/nir_loop_analyze.c | 2 +- 1

Re: [Mesa-dev] [PATCH] nir: silence a couple new compiler warnings

2019-03-11 Thread Timothy Arceri
Thanks Reviewed-by: Timothy Arceri On 12/3/19 1:12 pm, Brian Paul wrote: [33/630] Compiling C object 'src/compiler/nir/nir@sta/nir_loop_analyze.c.o'. ../src/compiler/nir/nir_loop_analyze.c: In function ‘try_find_trip_count_vars_in_iand’: ../src/compiler/nir/nir_loop_analyze.c:846:29:

[Mesa-dev] [PATCH 2/2] nir: Remove unused variable unroll_loc

2019-03-11 Thread Alyssa Rosenzweig
Fixes a gcc warning. Signed-off-by: Alyssa Rosenzweig --- src/compiler/nir/nir_opt_loop_unroll.c | 4 1 file changed, 4 deletions(-) diff --git a/src/compiler/nir/nir_opt_loop_unroll.c b/src/compiler/nir/nir_opt_loop_unroll.c index 9ab0a924c82..41f7a834164 100644 ---

[Mesa-dev] [PATCH 1/2] nir: Add missing parentheses

2019-03-11 Thread Alyssa Rosenzweig
Fixes a gcc warning (and a theoretical NULL dereference error, though I suppose shortcircuiting avoids that). Signed-off-by: Alyssa Rosenzweig --- src/compiler/nir/nir_loop_analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_loop_analyze.c

[Mesa-dev] [PATCH] nir: silence a couple new compiler warnings

2019-03-11 Thread Brian Paul
[33/630] Compiling C object 'src/compiler/nir/nir@sta/nir_loop_analyze.c.o'. ../src/compiler/nir/nir_loop_analyze.c: In function ‘try_find_trip_count_vars_in_iand’: ../src/compiler/nir/nir_loop_analyze.c:846:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (*ind ==

[Mesa-dev] [PATCH] docs: link to the meson_options.txt file gitlab.freedesktop.org

2019-03-11 Thread Brian Paul
--- docs/meson.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/meson.html b/docs/meson.html index 09b45be..08e4d1a 100644 --- a/docs/meson.html +++ b/docs/meson.html @@ -103,7 +103,8 @@ running "meson build/" but this feature is being discussed upstream. For now,

[Mesa-dev] [PATCH] docs: separate information for compiler selection and compiler options

2019-03-11 Thread Brian Paul
Split up the "Environment Variables" section into "Compiler Options" and "Compiler Specification". I think this makes the information easier to find and understand. --- docs/meson.html | 58 ++--- 1 file changed, 39 insertions(+), 19

Re: [Mesa-dev] [PATCH] anv: destroy descriptor sets when pool gets reset

2019-03-11 Thread Jason Ekstrand
pushed. On Mon, Mar 11, 2019 at 3:15 PM Clayton Craft wrote: > On Mon, Mar 11, 2019 at 06:33:54PM +0100, Juan A. Suarez Romero wrote: > >As stated in Vulkan spec: > > "Resetting a descriptor pool recycles all of the resources from all > >of the descriptor sets allocated from the

Re: [Mesa-dev] [PATCH] st/mesa: init hash keys with memset(), not designated initializers

2019-03-11 Thread Brian Paul
On 03/11/2019 04:47 PM, Eric Anholt wrote: Brian Paul writes: Since the compiler may not zero-out padding in the object. Add a couple comments about this to prevent misunderstandings in the future. Fixes: 67d96816ff5 ("st/mesa: move, clean-up shader variant key decls/inits") ---

[Mesa-dev] [Bug 109641] GLX swrast driver leaks shared memory segments

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109641 --- Comment #1 from Brian Paul --- I believe this recent patch should help: commit b344e32cdf7064a1f2ff7ef37027edda6589404f Author: Ray Zhang Date: Wed Feb 27 06:54:05 2019 + glx: fix shared memory leak in X11 call XShmDetach

Re: [Mesa-dev] [PATCH 33/34] nv50/ir/nir: handle user clip planes for each emitted vertex

2019-03-11 Thread Ilia Mirkin
On Mon, Mar 11, 2019 at 8:18 PM Karol Herbst wrote: > > On Tue, Mar 12, 2019 at 1:09 AM Ilia Mirkin wrote: > > > > On Mon, Mar 11, 2019 at 8:05 PM Karol Herbst wrote: > > > > > > v9: convert to C++ style comments > > > Signed-off-by: Karol Herbst > > > --- > > >

[Mesa-dev] 2019 X.Org Foundation Election Candidates

2019-03-11 Thread Wentland, Harry
To all X.Org Foundation Members: The election for the X.Org Foundation Board of Directors will begin on 14 March 2019. We have 6 candidates who are running for 4 seats. They are (in alphabetical order): Samuel Iglesias Gonsálvez Arkadiusz Hiler Manasi Navare Lyude Paul Daniel Vetter Trevor

Re: [Mesa-dev] [PATCH 33/34] nv50/ir/nir: handle user clip planes for each emitted vertex

2019-03-11 Thread Karol Herbst
On Tue, Mar 12, 2019 at 1:09 AM Ilia Mirkin wrote: > > On Mon, Mar 11, 2019 at 8:05 PM Karol Herbst wrote: > > > > v9: convert to C++ style comments > > Signed-off-by: Karol Herbst > > --- > > src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 6 +- > > 1 file changed, 5

Re: [Mesa-dev] [PATCH 33/34] nv50/ir/nir: handle user clip planes for each emitted vertex

2019-03-11 Thread Ilia Mirkin
On Mon, Mar 11, 2019 at 8:05 PM Karol Herbst wrote: > > v9: convert to C++ style comments > Signed-off-by: Karol Herbst > --- > src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git

[Mesa-dev] [PATCH 17/34] nv50/ir/nir: implement nir_intrinsic_store_(per_vertex_)output

2019-03-11 Thread Karol Herbst
v3: add workaround for RA issues indirects have to be multiplied by 0x10 fix indirect access v4: use smarter getIndirect helper use storeTo helper v5: don't use const_offset directly v8: don't require C++11 features v9: convert to C++ style comments handle clip planes correctly

[Mesa-dev] [PATCH 23/34] nv50/ir/nir: add skeleton getOperation for intrinsics

2019-03-11 Thread Karol Herbst
v7: don't assert in default case for getSubOp Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 22 +++ 1 file changed, 22 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 20/34] nv50/ir/nir: implement loading system values

2019-03-11 Thread Karol Herbst
v2: support more sys values fixed a bug where for multi component reads all values ended up in x v3: add load_patch_vertices_in v4: add subgroup stuff v5: add helper invocation v6: fix loading 64 bit system values v8: don't require C++11 features v9: convert to C++ style comments

[Mesa-dev] [PATCH 29/34] nv50/ir/nir: implement images

2019-03-11 Thread Karol Herbst
v3: fix compiler warnings v4: use loadFrom helper v5: fix signed min/max v6: set tex mask add support for indirect image access set cache mode v7: make compatible with 884d27bcf688d36c3bbe01bceca525595add3b33 rework the whole deref thing to prepare for bindless v8: port to deref

[Mesa-dev] [PATCH 34/34] nv50ir/nir: move immediates before use

2019-03-11 Thread Karol Herbst
Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 59 +-- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index

[Mesa-dev] [PATCH 12/34] nv50/ir/nir: parse NIR shader info

2019-03-11 Thread Karol Herbst
v2: parse a few more fields v3: add special handling for GL_ISOLINES v8: set info->prop.fp.readsSampleLocations don't require C++11 features v9: replace '(*it).' with 'it->' convert to C++ style comments Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 323

[Mesa-dev] [PATCH 32/34] nv50/ir/nir: implement intrinsic shader_clock

2019-03-11 Thread Karol Herbst
v9: mark as fixed Signed-off-by: Karol Herbst --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index

[Mesa-dev] [PATCH 25/34] nv50/ir/nir: implement variable indexing

2019-03-11 Thread Karol Herbst
We store those arrays in local memory and reserve some space for each of the arrays. With NIR we could store those arrays packed, but we don't do that yet as it causes MemoryOpt to generate unaligned memory accesses. v3: use fixed size vec4 arrays until we fix MemoryOpt v4: fix for 64 bit types

[Mesa-dev] [PATCH 24/34] nv50/ir/nir: implement vote and ballot

2019-03-11 Thread Karol Herbst
v2: add vote_eq support use the new subop intrinsic helper add ballot v3: add read_(first_)invocation v8: handle vectorized intrinsics don't require C++11 features v9: lower_subgroups to 32 bit (produces less instructions) use getSSA and getScratch instead of new_LValue

[Mesa-dev] [PATCH 26/34] nv50/ir/nir: implement geometry shader nir_intrinsics

2019-03-11 Thread Karol Herbst
v4: use smarter getIndirect helper use new getSlotAddress helper use loadFrom helper v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 27 +++ 1 file changed, 27 insertions(+) diff --git

[Mesa-dev] [PATCH 21/34] nv50/ir/nir: implement nir_ssa_undef_instr

2019-03-11 Thread Karol Herbst
v2: use mkOp v8: don't require C++11 features Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp| 13 + 1 file changed, 13 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 13/34] nv50/ir/nir: implement nir_load_const_instr

2019-03-11 Thread Karol Herbst
v8: fix loading 8/16 bit constants Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 28 +++ 1 file changed, 28 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 22/34] nv50/ir/nir: implement nir_instr_type_tex

2019-03-11 Thread Karol Herbst
a lot of those fields are not valid for a lot of tex ops. Not quite sure if it's worth the effort to check for those or just keep it like that. It seems to kind of work. v2: reworked offset handling add tex support with indirect R/S arguments handle GLSL_SAMPLER_DIM_EXTERNAL drop

[Mesa-dev] [PATCH 09/34] nv50/ir/nir: add nir type helper functions

2019-03-11 Thread Karol Herbst
v4: treat imul as unsigned v5: remove pointless !! v7: inot is unsigned as well v8: don't require C++11 features v9: convert to C++ style comments improve formatting print error in all cases where codegen doesn't support a given type Signed-off-by: Karol Herbst Acked-by: Pierre Moreau

[Mesa-dev] [PATCH 19/34] nv50/ir/nir: implement intrinsic_discard(_if)

2019-03-11 Thread Karol Herbst
v9: use getSSA instead of new_LValue Signed-off-by: Karol Herbst --- .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 18/34] nv50/ir/nir: implement load_(interpolated_)input/output

2019-03-11 Thread Karol Herbst
v3: and load_output v4: use smarter getIndirect helper use new getSlotAddress helper v5: don't use const_offset directly fix for indirects v6: add support for interpolateAt v7: fix compiler warnings add load_barycentric_sample handle load_output for fragment shaders v8: set

[Mesa-dev] [PATCH 16/34] nv50/ir/nir: implement nir_intrinsic_load_uniform

2019-03-11 Thread Karol Herbst
v2: use new getIndirect helper fixes symbols for 64 bit types v4: use smarter getIndirect helper simplify address calculation use loadFrom helper v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 10 ++

[Mesa-dev] [PATCH 14/34] nv50/ir/nir: add skeleton for nir_intrinsic_instr

2019-03-11 Thread Karol Herbst
Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp| 17 + 1 file changed, 17 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 30/34] nv50/ir/nir: add memory barriers

2019-03-11 Thread Karol Herbst
v5: add more barrier intrinsics Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 21 +++ 1 file changed, 21 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 33/34] nv50/ir/nir: handle user clip planes for each emitted vertex

2019-03-11 Thread Karol Herbst
v9: convert to C++ style comments Signed-off-by: Karol Herbst --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 28/34] nv50/ir/nir: implement ssbo intrinsics

2019-03-11 Thread Karol Herbst
v4: use loadFrom helper v5: support indirect buffer access v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 90 +++ 1 file changed, 90 insertions(+) diff --git

[Mesa-dev] [PATCH 11/34] nv50/ir/nir: add loadFrom and storeTo helpler

2019-03-11 Thread Karol Herbst
v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 72 +++ 1 file changed, 72 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 15/34] nv50/ir/nir: implement nir_alu_instr handling

2019-03-11 Thread Karol Herbst
v2: user bitfield_insert instead of bfi rework switch helper macros remove some lowering code (LoweringHelper is now used for this) v3: add pack_half_2x16_split add unpack_half_2x16_split_x/y v5: replace first argument with nullptr in loadImm calls prefer getSSA over getScratch v8:

[Mesa-dev] [PATCH 10/34] nv50/ir/nir: run assignSlots

2019-03-11 Thread Karol Herbst
v2: add support for geometry shaders set idx add some missing mappings fix for 64bit inputs/outputs fix up some FP color output index messup parse centroid flag v3: fix arrays in outputs as well fix input/ouput size calculation for tessellation shaders v4: add

[Mesa-dev] [PATCH 27/34] nv50/ir/nir: implement nir_intrinsic_load_ubo

2019-03-11 Thread Karol Herbst
v4: use loadFrom helper v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 31/34] nv50/ir/nir: implement load_per_vertex_output

2019-03-11 Thread Karol Herbst
v4: use smarter getIndirect helper use new getSlotAddress helper v5: use loadFrom helper v8: don't require C++11 features Signed-off-by: Karol Herbst --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 23 +++ 1 file changed, 23 insertions(+) diff --git

[Mesa-dev] [PATCH 02/34] nvc0: print the shader type when dumping headers

2019-03-11 Thread Karol Herbst
this makes debugging the shader header a little easier Acked-by: Pierre Moreau Signed-off-by: Karol Herbst --- src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c

[Mesa-dev] [PATCH 06/34] nouveau: fix nir and TGSI shader cache collision

2019-03-11 Thread Karol Herbst
v9: rename variable to driver_flags use constants for shader cache flags Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- src/gallium/drivers/nouveau/nouveau_screen.c | 8 +++- src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ 2 files changed, 10 insertions(+), 1

[Mesa-dev] [PATCH 07/34] nv50/ir/nir: run some passes to make the conversion easier

2019-03-11 Thread Karol Herbst
v2: add constant_folding v6: print non final NIR only for verbose debugging v8: add passes we will need for OpenCL compute shaders v9: move type_size into anonymous namespace convert to C++ style comments lower bools to int32 Signed-off-by: Karol Herbst Acked-by: Pierre Moreau ---

[Mesa-dev] [PATCH 08/34] nv50/ir/nir: track defs and provide easy access functions

2019-03-11 Thread Karol Herbst
v2: add helper function for indirects v4: add new getIndirect overload for easier use v5: use getSSA for ssa values we can just create the values for unassigned registers in getSrc v6: always create at least 32 bit values v8: don't require C++11 features v9: include unordered_map on supported

[Mesa-dev] [PATCH 05/34] nouveau: add support for nir

2019-03-11 Thread Karol Herbst
not all those nir options are actually required, it just made the work a little easier. v2: fix asserts parse compute shaders don't lower bitfield_insert v3: fix memory leak v4: don't lower fmod32 v5: set lower_all_io_to_temps to false fix memory leak because we take over ownership of

[Mesa-dev] [PATCH 04/34] nv50/ir: add lowering helper

2019-03-11 Thread Karol Herbst
if we start supporting multiple input IRs we might want to move lowering code into a common place and keep the initial translation simplier. This will also allows us to react on ISA changes more easily. v5: also handle SAT v6: rename type variables fixed lowering of NEG add lowering of

[Mesa-dev] [PATCH 01/34] prog_to_nir: fix write from vps to PSIZ

2019-03-11 Thread Karol Herbst
Point size is a single component value and drivers might write the full vec4 potentially overwriting other values. Signed-off-by: Karol Herbst --- src/mesa/program/prog_to_nir.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/program/prog_to_nir.c

[Mesa-dev] [PATCH 03/34] nv50/ir: move common converter code in base class

2019-03-11 Thread Karol Herbst
v2: remove TGSI related bits Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- src/gallium/drivers/nouveau/Makefile.sources | 2 + .../nouveau/codegen/nv50_ir_from_common.cpp | 107 ++ .../nouveau/codegen/nv50_ir_from_common.h | 58 ++

[Mesa-dev] [PATCH 00/34] Nouveau NIR patches

2019-03-11 Thread Karol Herbst
I think I will just go ahead and merge it over the next few days. There are more patches to fix some crashes related to 64 bit types, but that is touching current RA code and I would like to have better testing there. So some piglit regressions, most related to 64 bit types though covered by the

Re: [Mesa-dev] [PATCH] st/mesa: init hash keys with memset(), not designated initializers

2019-03-11 Thread Eric Anholt
Brian Paul writes: > Since the compiler may not zero-out padding in the object. > Add a couple comments about this to prevent misunderstandings in > the future. > > Fixes: 67d96816ff5 ("st/mesa: move, clean-up shader variant key decls/inits") > --- > src/mesa/state_tracker/st_atom_shader.c | 9

Re: [Mesa-dev] [PATCH] radv: fix pointSizeRange limits

2019-03-11 Thread Bas Nieuwenhuizen
r-b On Mon, Mar 11, 2019 at 10:23 AM Samuel Pitoiset wrote: > > The values should match the ones that are emitted. > > This fixes new CTS dEQP-VK.rasterization.primitive_size.points.*. > > Fixes: f4e499ec791 ("radv: add initial non-conformant radv vulkan driver") > Signed-off-by: Samuel Pitoiset

Re: [Mesa-dev] [PATCH 2/9] anv: Set the values for the VkPhysicalDeviceSampleLocationsPropertiesEXT

2019-03-11 Thread Sagar Ghuge
On Mon, 2019-03-11 at 17:04 +0200, Eleni Maria Stea wrote: > The VkPhysicalDeviceSampleLocationPropertiesEXT struct is filled with > implementation dependent values and according to the table from the > Vulkan Specification section [36.1. Limit Requirements]: > > pname | max | min >

Re: [Mesa-dev] [PATCH 2/9] anv: Set the values for the VkPhysicalDeviceSampleLocationsPropertiesEXT

2019-03-11 Thread Sagar Ghuge
On Mon, 2019-03-11 at 17:04 +0200, Eleni Maria Stea wrote: > The VkPhysicalDeviceSampleLocationPropertiesEXT struct is filled with > implementation dependent values and according to the table from the > Vulkan Specification section [36.1. Limit Requirements]: > > pname | max | min >

[Mesa-dev] [Bug 109939] After upgrade mesa to 19.0.0 stop working the game Rise of the Tomb Raider

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109939 --- Comment #15 from Timur Kristóf --- Will attach the contents of the preferences folder next time I encounter this problem. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the

[Mesa-dev] [AppVeyor] mesa master #10355 completed

2019-03-11 Thread AppVeyor
Build mesa 10355 completed Commit 3a9e2d6085 by Eric Anholt on 2/28/2019 8:02 PM: vc4: Switch the post-RA scheduler over to the DAG datastructure.\n\nJust a small code reduction from shared infrastructure. Configure your notification preferences

Re: [Mesa-dev] [PATCH] anv: destroy descriptor sets when pool gets reset

2019-03-11 Thread Clayton Craft
On Mon, Mar 11, 2019 at 06:33:54PM +0100, Juan A. Suarez Romero wrote: As stated in Vulkan spec: "Resetting a descriptor pool recycles all of the resources from all of the descriptor sets allocated from the descriptor pool back to the descriptor pool, and the descriptor sets are

[Mesa-dev] [Bug 109939] After upgrade mesa to 19.0.0 stop working the game Rise of the Tomb Raider

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109939 --- Comment #14 from mikhail.v.gavri...@gmail.com --- Alex, I am attach "Rise of the Tomb Raider" archive here. For reproducing problem after continue the game. Try fast travel to locations: "The Gulag" and "Valley Farmstead" -- You are

[Mesa-dev] [Bug 109939] After upgrade mesa to 19.0.0 stop working the game Rise of the Tomb Raider

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109939 --- Comment #13 from mikhail.v.gavri...@gmail.com --- Created attachment 143627 --> https://bugs.freedesktop.org/attachment.cgi?id=143627=edit Rise of the Tomb Raider -- You are receiving this mail because: You are the QA Contact for the

[Mesa-dev] [AppVeyor] mesa master #10354 failed

2019-03-11 Thread AppVeyor
Build mesa 10354 failed Commit 5f0a922c27 by Kristian H. Kristensen on 3/1/2019 10:33 PM: freedreno/a6xx: Remove extra parens\n\nThere's a warning about this now.\n\nSigned-off-by: Kristian H. Kristensen Configure your notification preferences

Re: [Mesa-dev] [PATCH] anv: destroy descriptor sets when pool gets reset

2019-03-11 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Mar 11, 2019 at 12:34 PM Juan A. Suarez Romero wrote: > As stated in Vulkan spec: >"Resetting a descriptor pool recycles all of the resources from all > of the descriptor sets allocated from the descriptor pool back to > the descriptor pool, and

[Mesa-dev] [PATCH] anv: destroy descriptor sets when pool gets reset

2019-03-11 Thread Juan A. Suarez Romero
As stated in Vulkan spec: "Resetting a descriptor pool recycles all of the resources from all of the descriptor sets allocated from the descriptor pool back to the descriptor pool, and the descriptor sets are implicitly freed." This fixes dEQP-VK.api.descriptor_pool.* Fixes:

[Mesa-dev] [Bug 109535] [Tracker] Mesa 19.0 release tracker

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109535 Dylan Baker changed: What|Removed |Added Depends on|109695 | Referenced Bugs:

Re: [Mesa-dev] [PATCH 9/9] anv: Enabled the VK_EXT_sample_locations extension

2019-03-11 Thread Lionel Landwerlin
On 11/03/2019 15:04, Eleni Maria Stea wrote: Enabled the VK_EXT_sample_locations for Intel Gen >= 7. --- src/intel/vulkan/anv_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index

Re: [Mesa-dev] [PATCH 11/12] panfrost: Identify fragment_extra flags

2019-03-11 Thread Tomeu Vizoso
One more brick in the wall :) Reviewed-by: Tomeu Vizoso On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > The fragment_extra structure contains additional fields extending the > MRT framebuffer descriptor, snuck in between the main framebuffer > descriptor and the render targets. Its

[Mesa-dev] [PATCH 9/9] anv: Enabled the VK_EXT_sample_locations extension

2019-03-11 Thread Eleni Maria Stea
Enabled the VK_EXT_sample_locations for Intel Gen >= 7. --- src/intel/vulkan/anv_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index 9e4e03e46df..99007544732 100644 ---

[Mesa-dev] [PATCH 8/9] anv: Removed unused header file

2019-03-11 Thread Eleni Maria Stea
In src/intel/vulkan/genX_blorp_exec.c we included the file: common/gen_sample_positions.h but not use it. Removed. --- src/intel/vulkan/genX_blorp_exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index

[Mesa-dev] [PATCH 7/9] anv: Optimized the emission of the default locations on Gen8+

2019-03-11 Thread Eleni Maria Stea
We only emit sample locations when the extension is enabled by the user. In all other cases the default locations are emitted once when the device is initialized to increase performance. --- src/intel/vulkan/anv_genX.h| 3 ++- src/intel/vulkan/genX_cmd_buffer.c | 2 +-

[Mesa-dev] [PATCH 3/9] anv: Implemented the vkGetPhysicalDeviceMultisamplePropertiesEXT

2019-03-11 Thread Eleni Maria Stea
Implemented the vkGetPhysicalDeviceMultisamplePropertiesEXT according to the Vulkan Specification section [36.2. Additional Multisampling Capabilities]. --- src/intel/Makefile.sources | 1 + src/intel/vulkan/anv_sample_locations.c | 60 +

[Mesa-dev] [PATCH 6/9] anv: Added support for dynamic and non-dynamic sample locations on Gen7

2019-03-11 Thread Eleni Maria Stea
Allowing setting dynamic and non-dynamic sample locations on Gen7. --- src/intel/vulkan/anv_genX.h| 13 ++--- src/intel/vulkan/genX_cmd_buffer.c | 9 ++-- src/intel/vulkan/genX_pipeline.c | 13 + src/intel/vulkan/genX_state.c | 86 +- 4 files

[Mesa-dev] [PATCH 1/9] anv: Added the VK_EXT_sample_locations extension to the anv_extensions list

2019-03-11 Thread Eleni Maria Stea
Added the VK_EXT_sample_locations to the anv_extensions.py list to generate the related entrypoints. --- src/intel/vulkan/anv_extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index 6fff293dee4..9e4e03e46df

[Mesa-dev] [PATCH 5/9] anv: Added support for dynamic sample locations on Gen8+

2019-03-11 Thread Eleni Maria Stea
Added support for setting the locations when the pipeline has been created with the dynamic state bit enabled according to the Vulkan Specification section [26.5. Custom Sample Locations] for the function: 'vkCmdSetSampleLocationsEXT' The reason that we preferred to store the boolean valid

[Mesa-dev] [PATCH 4/9] anv: Added support for non-dynamic sample locations on Gen8+

2019-03-11 Thread Eleni Maria Stea
Allowing the user to set custom sample locations non-dynamically, by filling the extension structs and chaining them to the pipeline structs according to the Vulkan specification section [26.5. Custom Sample Locations] for the following structures: 'VkPipelineSampleLocationsStateCreateInfoEXT'

[Mesa-dev] [PATCH 2/9] anv: Set the values for the VkPhysicalDeviceSampleLocationsPropertiesEXT

2019-03-11 Thread Eleni Maria Stea
The VkPhysicalDeviceSampleLocationPropertiesEXT struct is filled with implementation dependent values and according to the table from the Vulkan Specification section [36.1. Limit Requirements]: pname | max | min pname:sampleLocationSampleCounts |-|ename:VK_SAMPLE_COUNT_4_BIT

Re: [Mesa-dev] [PATCH 10/12] panfrost: Document "depth buffer writeback" bit

2019-03-11 Thread Alyssa Rosenzweig
> If I comment the line immediately above, things work as expected. Interesting, okay, this is definitely a regression on kbase too. I'll investigate this evening -- I think I need to be checking the depth mask before setting this bit..? ___ mesa-dev

Re: [Mesa-dev] [PATCH 05/12] panfrost: Determine framebuffer format bits late

2019-03-11 Thread Alyssa Rosenzweig
> Can we use a constant instead? The right solution is to actually RE the format bits for SFBD (which will be necessary if we're serious about supporting https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 8/8] panfrost: Add backend targeting the DRM driver

2019-03-11 Thread Alyssa Rosenzweig
> I'm pretty sure it will be obsolete in only 240 years too. :) Ecclesiastes 1:9, alas :P ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 08/12] panfrost: Support linear depth textures

2019-03-11 Thread Tomeu Vizoso
Reviewed-by: Tomeu Vizoso On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > This combination has not yet been seen "in the wild" in traces, but to > support linear depth FBOs, ~bruteforce reveals this bit pattern is > necessary. It's not yet clear why the meanings of 0x1 and 0x2 are >

Re: [Mesa-dev] [PATCH 07/12] panfrost: Allocate dedicated slab for linear BOs

2019-03-11 Thread Tomeu Vizoso
Reviewed-by: Tomeu Vizoso On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > Previously, linear BOs shared memory with each other to minimize kernel > round-trips / latency, as well as to work around a bug in the free_slab > function. These concerns are invalid now, but continuing to

[Mesa-dev] [Question] nir_intrinsic_load_uniform use float const_offset now

2019-03-11 Thread Qiang Yu
Hi guys, When doing rebase from 18.3 to master branch, I found nir_intrinsic_load_uniform use float const_offset now. But most gallium drivers still treat it as int except freedreno. I don't know which commit did this, is this expected? Regards, Qiang

Re: [Mesa-dev] [PATCH v2 8/8] panfrost: Add backend targeting the DRM driver

2019-03-11 Thread Rob Herring
On Fri, Mar 8, 2019 at 3:59 PM Alyssa Rosenzweig wrote: > > > +/** > > + * struct drm_panfrost_wait_bo - ioctl argument for waiting for > > + * completion of the last DRM_PANFROST_SUBMIT_CL on a BO. > > Nit: Should be plain DRM_PANFROST_SUBMIT, there is no CL for us. > > > + __s64 timeout_ns;

[Mesa-dev] [Bug 109939] After upgrade mesa to 19.0.0 stop working the game Rise of the Tomb Raider

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109939 --- Comment #12 from Alex Smith --- Sounds like this is potentially a game issue. Could both of you zip up the contents of the preferences folder ("~/.local/share/feral-interactive/Rise of the Tomb Raider") once you're getting the issue, and

Re: [Mesa-dev] [PATCH 06/12] panfrost: Refactor layout selection (BO creation)

2019-03-11 Thread Tomeu Vizoso
On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > With a unified layout field, we can specify the logic for BO layout > explicitly, deciding between linear/tiled/AFBC based on the specified > usage/binding flags. > > Signed-off-by: Alyssa Rosenzweig Great stuff! Reviewed-by: Tomeu

Re: [Mesa-dev] [PATCH 05/12] panfrost: Determine framebuffer format bits late

2019-03-11 Thread Tomeu Vizoso
On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > Again, these formats are only properly known at the time of fragment job > emit. Rather than hardcoding the format, at least for MFBD we begin to > construct the format bits on-demand. This cleans up the code, > futureproofs for ES3

Re: [Mesa-dev] [PATCH 04/12] panfrost: Cleanup zsbuf emit in fragment job

2019-03-11 Thread Tomeu Vizoso
On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > This emit is only implemented for AFBC depth/stencil buffers, so > conceptually there is no change here, but we follow the style of the > previous patch to improve robustness and clarity. > > Signed-off-by: Alyssa Rosenzweig > --- >

Re: [Mesa-dev] [PATCH 03/12] panfrost: Delay color buffer setup

2019-03-11 Thread Tomeu Vizoso
Reviewed-by: Tomeu Vizoso On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > In an effort to cleanup framebuffer management code, we delay > colour buffer setup until the FRAGMENT job is actually emitted, allowing > the AFBC and linear codepaths to be unified. > > Signed-off-by: Alyssa

Re: [Mesa-dev] [PATCH 02/12] panfrost: Combine has_afbc/tiled in layout enum

2019-03-11 Thread Tomeu Vizoso
On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > AFBC, tiled, and linear BO layouts are mutually exclusive; they should > be coupled via a single enum rather than ad hoc checks of booleans. > > Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso > --- >

Re: [Mesa-dev] [PATCH 01/12] panfrost: Cleanup needless if in create_bo

2019-03-11 Thread Tomeu Vizoso
On Sun, 10 Mar 2019 at 07:50, Alyssa Rosenzweig wrote: > > I'm not sure why we were checking for these additional criteria (likely > inherited from some other driver); remove the needless checks to cleanup > the code and perhaps fix some bugs down the line. > > Signed-off-by: Alyssa Rosenzweig

[Mesa-dev] [Bug 109958] Xorg memory leak when using llvmpipe/softpipe

2019-03-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109958 --- Comment #1 from joney --- After searching a little bit more I just found https://bugs.freedesktop.org/show_bug.cgi?id=109641 which looks like it might be the same issue. -- You are receiving this mail because: You are the assignee for the

[Mesa-dev] [PATCH 1/2] panfrost: Set bo->imported_size in the DRM backend

2019-03-11 Thread Tomeu Vizoso
Signed-off-by: Tomeu Vizoso --- src/gallium/drivers/panfrost/pan_drm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_drm.c b/src/gallium/drivers/panfrost/pan_drm.c index 6d1129ff5f2b..62a7b0ce5a30 100644 ---

[Mesa-dev] panfrost: couple of fixes

2019-03-11 Thread Tomeu Vizoso
Hi, I needed the below two patches to avoid regressions when testing this series. Thanks, Tomeu ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 2/2] panfrost: Set bo->gem_handle when creating a linear BO

2019-03-11 Thread Tomeu Vizoso
Signed-off-by: Tomeu Vizoso --- src/gallium/drivers/panfrost/pan_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 1a6769b5508e..e398b6f6b7ce 100644 ---

  1   2   >