Re: [Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-10-30 Thread Dave Airlie
> +LLVMValueRef > +ac_build_subgroup_inclusive_scan(struct ac_llvm_context *ctx, > +LLVMValueRef src, > +ac_reduce_op reduce, > +LLVMValueRef identity) > +{ > + /* See http://gpuopen.com/amd-gcn-as

Re: [Mesa-dev] [PATCH] i965: Fix ARB_indirect_parameters logic.

2017-10-30 Thread Kenneth Graunke
On Monday, October 30, 2017 2:14:24 PM PDT Plamena Manolova wrote: > This patch modifies the ARB_indirect_parameters logic in > brw_draw_prims, so that our implementation isn't affected if > another application attempts to use predicates. Previously we > were using a predicate with a DELTAS_EQUAL c

Re: [Mesa-dev] [PATCH 5/7] meson: build r600

2017-10-30 Thread Aaron Watry
Hi Dylan, I took a crack at testing this one. My BARTS (Radeon 6850) seems to be running through piglit with a reasonable pass-rate afterwards, a restart of GDM/gnome went fine, and at least xonotic launched and is running. I did attempt to build it with vdpau/va gallium-media api support (as de

[Mesa-dev] [PATCH] radeonsi: fix culldist_writemask in nir path

2017-10-30 Thread Timothy Arceri
In RADV we need to offset the writemask because nir_lower_clip_cull_distance_arrays() combines the arrays. However we can't use this with radeonsi currently so don't offset the writemask. Fixes the following piglit tests: arb_cull_distance/clip-cull-3.shader_test arb_cull_distance/clip-cull-4.sha

Re: [Mesa-dev] [PATCH 09/25] gallium/u_threaded: implement asynchronous flushes

2017-10-30 Thread Marek Olšák
On Sun, Oct 22, 2017 at 9:07 PM, Nicolai Hähnle wrote: > @@ -107,20 +138,46 @@ static boolean si_fence_finish(struct pipe_screen > *screen, >uint64_t timeout) > { > struct radeon_winsys *rws = ((struct r600_common_screen*)screen)->ws; > struct si_m

[Mesa-dev] [PATCH] ac/nir: for ubo load use correct num_components

2017-10-30 Thread Dave Airlie
From: Dave Airlie I was hacking something stupid in doom, and hit an assert for the bitcast following this, it definitely looks like this should be the number of 32-bit components, not the instr level ones. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 2 +- 1 file changed,

Re: [Mesa-dev] [PATCH 2/2] meson: set visibility flags on gbm

2017-10-30 Thread Eric Anholt
Dylan Baker writes: > This is done in autotools, and is an oversight in the meson build. > > Signed-off-by: Dylan Baker Both are: Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedeskto

Re: [Mesa-dev] [PATCH] radv: use correct alloc function when loading from disk

2017-10-30 Thread Bas Nieuwenhuizen
R-b On 31 Oct 2017 01:35, "Timothy Arceri" wrote: > Fixes regression in: > > dEQP-VK.api.object_management.alloc_callback_fail.graphics_pipeline > > Fixes: 1e84e53712ae "radv: add cache items to in memory cache when reading > from disk" > --- > src/amd/vulkan/radv_pipeline_cache.c | 15

Re: [Mesa-dev] [PATCH v3 38/43] i965/fs: Optimize 16-bit SSBO stores by packing two into a 32-bit reg

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Eduardo Lima Mitev > > Currently, we use byte-scattered write messages for storing 16-bit > into an SSBO. This is because untyped surface messages have a fixed > 32-bit size. > > This patch optimi

[Mesa-dev] [PATCH] radv: use correct alloc function when loading from disk

2017-10-30 Thread Timothy Arceri
Fixes regression in: dEQP-VK.api.object_management.alloc_callback_fail.graphics_pipeline Fixes: 1e84e53712ae "radv: add cache items to in memory cache when reading from disk" --- src/amd/vulkan/radv_pipeline_cache.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --g

Re: [Mesa-dev] [PATCH V2 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-30 Thread Nanley Chery
On Fri, Oct 06, 2017 at 04:30:47PM -0700, Anuj Phogat wrote: > There are few other (duplicate) workarounds which have similar > recommendations: > WaFlushHangWhenNonPipelineStateAndMarkerStalled > WaCSStallBefore3DSamplePattern > WaPipeControlBefore3DStateSamplePattern > > WaPipeControlBefore3DSt

Re: [Mesa-dev] [PATCH v3 00/43] anv: SPV_KHR_16bit_storage/VK_KHR_16bit_storage for gen8+

2017-10-30 Thread Jason Ekstrand
Patches 1-5, 8-11, and 13-18 are Reviewed-by: Jason Ekstrand On Mon, Oct 16, 2017 at 8:23 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Oct 16, 2017 at 08:03:41AM -0700, Jason Ekstrand wrote: > > FYI: I'm planning to review this some time this week. Probably not today >

Re: [Mesa-dev] [PATCH v3 22/43] i965/fs: Use byte_scattered_write on 16-bit store_ssbo

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Alejandro Piñeiro > > We need to rely on byte scattered writes as untyped writes are 32-bit > size. We could try to keep using 32-bit messages when we have two or > four 16-bit elements, but for s

Re: [Mesa-dev] [PATCH v3 21/43] i965/fs: Adjust type_size/type_slots on store_ssbo

2017-10-30 Thread Jason Ekstrand
This patch should really be squashed in with the next one. On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Alejandro Piñeiro > > --- > src/intel/compiler/brw_fs_nir.cpp | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --

Re: [Mesa-dev] [PATCH v3 20/43] i965/fs: Add byte scattered write message and fs support

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > Signed-off-by: Jose Maria Casanova Crespo > Signed-off-by: Alejandro Piñeiro > --- > src/intel/compiler/brw_eu.h| 6 ++ > src/intel/compiler/brw_eu_defines.h| 17 +

Re: [Mesa-dev] [PATCH 2/2] broadcom/genxml: Fix decoding of groups with small fields.

2017-10-30 Thread Eric Anholt
Kenneth Graunke writes: > Groups containing fields smaller than a byte probably not being decoded > correctly. For example: > > > > > > gen_field_iterator_next would properly walk over each element of the > array, incrementing group_iter. However, the code to print the actual >

Re: [Mesa-dev] [PATCH v3 19/43] i965/fs: Support push constants of 16-bit types

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > We enable the use of 16-bit values in push constants > modifying the assign_constant_locations function to work > with 16-bit types. > > The API to access buffers in Vulkan use multiples of 4-byte for >

Re: [Mesa-dev] [PATCH v3 28/34] i965: add cache fallback support using serialized nir

2017-10-30 Thread Kenneth Graunke
On Sunday, October 29, 2017 5:21:47 PM PDT Jordan Justen wrote: > On 2017-10-29 01:11:32, Kenneth Graunke wrote: > > On Sunday, October 22, 2017 1:01:36 PM PDT Jordan Justen wrote: > > > If the i965 gen program cannot be loaded from the cache, then we > > > fallback to using a serialized nir progra

Re: [Mesa-dev] [PATCH v3 34/34] i965: Initialize disk shader cache if MESA_GLSL_CACHE_DISABLE is false

2017-10-30 Thread Kenneth Graunke
On Sunday, October 22, 2017 1:01:42 PM PDT Jordan Justen wrote: > Double negative FTW! > > For now, the shader cache is disabled by default on i965 to allow us > to verify its stability. > > In other words, to enable the shader cache on i965, set > MESA_GLSL_CACHE_DISABLE to false or 0. If the va

Re: [Mesa-dev] [PATCH v3 33/34] dri drivers: Always add the sha1 build-id

2017-10-30 Thread Kenneth Graunke
On Sunday, October 22, 2017 1:01:41 PM PDT Jordan Justen wrote: > Cc: Dylan Baker > Signed-off-by: Jordan Justen > --- > src/mesa/drivers/dri/Makefile.am | 1 + > src/mesa/drivers/dri/meson.build | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/Mak

Re: [Mesa-dev] [PATCH v3 32/34] disk_cache: Fix issue reading GLSL metadata

2017-10-30 Thread Kenneth Graunke
On Sunday, October 22, 2017 1:01:40 PM PDT Jordan Justen wrote: > This would cause the read of the metadata content to fail, which would > prevent the linking from being skipped. > > Seen on Rocket League with i965 shader cache. > > Cc: Timothy Arceri > Signed-off-by: Jordan Justen > Reviewed-b

Re: [Mesa-dev] [PATCH v3 30/34] i965: Initialize sha1 hash of dri config options

2017-10-30 Thread Kenneth Graunke
On Sunday, October 22, 2017 1:01:38 PM PDT Jordan Justen wrote: > Signed-off-by: Jordan Justen > Reviewed-by: Timothy Arceri > --- > src/mesa/drivers/dri/i965/brw_context.c | 4 > src/mesa/drivers/dri/i965/brw_context.h | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/src/mesa/dr

Re: [Mesa-dev] [PATCH] i965: Don't flag BRW_NEW_SURFACES unless some push constants are dirty.

2017-10-30 Thread Rafael Antognolli
On Mon, Oct 30, 2017 at 12:54:43AM -0700, Kenneth Graunke wrote: > Due to a gaffe on my part, we were re-emitting all binding table entries > on every single draw call. The push_constant_packets atom listens to > BRW_NEW_DRAW_CALL, but skips emitting 3DSTATE_CONSTANT_XS for each stage > unless sta

Re: [Mesa-dev] [PATCH 2/4] i965/gen10: Implement WaForceRCPFEHangWorkaround

2017-10-30 Thread Anuj Phogat
On Mon, Oct 30, 2017 at 2:02 PM, Nanley Chery wrote: > On Mon, Oct 02, 2017 at 04:07:58PM -0700, Anuj Phogat wrote: >> Cc: mesa-sta...@lists.freedesktop.org >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/drivers/dri/i965/brw_pipe_control.c | 19 +++ >> 1 file changed, 19 insert

Re: [Mesa-dev] [PATCH v3 29/34] i965: Don't link when the program was found in the disk cache

2017-10-30 Thread Kenneth Graunke
On Sunday, October 22, 2017 1:01:37 PM PDT Jordan Justen wrote: > Signed-off-by: Jordan Justen > Cc: Timothy Arceri > --- > src/mesa/drivers/dri/i965/brw_link.cpp | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp > b/src/mesa/drivers/dri/i965/br

Re: [Mesa-dev] [PATCH] meson: Use true and false instead of yes and no for tristate options

2017-10-30 Thread Eric Anholt
Dylan Baker writes: > This allows a user to not care whether they're setting a tristate or a > boolean option, which is a nice user facing feature, and something I've > personally run into. > > Suggested-by: Adam Jackson > Signed-off-by: Dylan Baker Reviewed-by: Eric Anholt signature.asc De

Re: [Mesa-dev] [PATCH] meson: use dep_m in libgallium

2017-10-30 Thread Eric Anholt
Erik Faye-Lund writes: > The u_format_other.c users sqrtf, which on some systems require > a math-library. So let's make sure we link with it. > > Signed-off-by: Erik Faye-Lund Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ m

Re: [Mesa-dev] [PATCH v3 17/43] i965/fs: Enable rounding mode on f2f16 ops

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Alejandro Piñeiro > > By default we don't set the rounding mode. We only set > round-to-near-even or round-to-zero mode if explicitly set from nir. > > v2: Use a single SHADER_OPCODE_RND_MODE opco

[Mesa-dev] [Bug 103496] svga_screen.c:26:46: error: git_sha1.h: No such file or directory

2017-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103496 Ian Romanick changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH v3 12/43] i965/fs: Add brw_reg_type_from_bit_size utility method

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 3:08 PM, Jason Ekstrand wrote: > On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < > jmcasan...@igalia.com> wrote: > >> From: Alejandro Piñeiro >> >> Returns the brw_type for a given ssa.bit_size, and a reference type. >> So if bit_size is 64, and the referen

Re: [Mesa-dev] [PATCH v3 12/43] i965/fs: Add brw_reg_type_from_bit_size utility method

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:38 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Alejandro Piñeiro > > Returns the brw_type for a given ssa.bit_size, and a reference type. > So if bit_size is 64, and the reference type is BRW_REGISTER_TYPE_F, > it returns BRW_REGISTER_TYPE_DF.

Re: [Mesa-dev] [PATCH v3 08/43] spirv: Enable FPRoundingMode decorator to nir operations

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:37 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > SpvOpFConvert now manages the FPRoundingMode decorator for the > returning values enabling the nir_rounding_mode in the conversion > operation to fp16 values. > > v2: Fixed breaking of specialization con

Re: [Mesa-dev] [PATCH v3 07/43] spirv/nir: Handle 16-bit types

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:37 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Eduardo Lima Mitev > > v2: Added more missing implementations of 16-bit types. (Jason Ekstrand) > > Signed-off-by: Jose Maria Casanova Crespo > Signed-off-by: Eduardo Lima > --- > src/compiler/

Re: [Mesa-dev] [PATCH v3 06/43] nir: Handle fp16 rounding modes at nir_type_conversion_op

2017-10-30 Thread Jason Ekstrand
On Thu, Oct 12, 2017 at 11:37 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > nir_type_conversion enables new operations to handle rounding modes to > convert to fp16 values. Two new opcodes are enabled nir_op_f2f16_rtne > and nir_op_f2f16_rtz. > > The undefined behaviour doesn't

[Mesa-dev] [PATCH] i965: Fix ARB_indirect_parameters logic.

2017-10-30 Thread Plamena Manolova
This patch modifies the ARB_indirect_parameters logic in brw_draw_prims, so that our implementation isn't affected if another application attempts to use predicates. Previously we were using a predicate with a DELTAS_EQUAL comparison operation and relying on the MI_PREDICATE_DATA register being 0.

Re: [Mesa-dev] [PATCH 2/4] i965/gen10: Implement WaForceRCPFEHangWorkaround

2017-10-30 Thread Nanley Chery
On Mon, Oct 02, 2017 at 04:07:58PM -0700, Anuj Phogat wrote: > Cc: mesa-sta...@lists.freedesktop.org > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_pipe_control.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_pipe_

Re: [Mesa-dev] [PATCH] i965: Disable L3 cache allocation for external buffers

2017-10-30 Thread Lyude Paul
Bump. Any update on this? On Tue, 2017-10-24 at 14:03 -0700, Jason Ekstrand wrote: > On Tue, Oct 24, 2017 at 9:06 AM, Chris Wilson > wrote: > > Through the use of mocs, we can define the cache usage for any surface > > > > used by the GPU. In particular, we can request that L3 cache be > > > > a

Re: [Mesa-dev] [PATCH v3 43/48] nir/lower_subgroups: Lower ballot intrinsics to the specified bit size

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 11:53 AM, Jason Ekstrand wrote: > On Mon, Oct 30, 2017 at 5:10 AM, Iago Toral wrote: > >> On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote: >> > Ballot intrinsics return a bitfield of subgroups. In GLSL and some >> > SPIR-V extensions, they return a uint64_t. In

Re: [Mesa-dev] [PATCH 4/4] i965/gen10: Implement Wa3DStateMode

2017-10-30 Thread Nanley Chery
On Mon, Oct 30, 2017 at 12:28:53PM -0700, Anuj Phogat wrote: > On Mon, Oct 30, 2017 at 11:08 AM, Nanley Chery wrote: > > On Mon, Oct 02, 2017 at 04:08:00PM -0700, Anuj Phogat wrote: > >> Cc: mesa-sta...@lists.freedesktop.org > >> Signed-off-by: Anuj Phogat > >> --- > >> src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] meson: use dep_m in libgallium

2017-10-30 Thread Erik Faye-Lund
The u_format_other.c users sqrtf, which on some systems require a math-library. So let's make sure we link with it. Signed-off-by: Erik Faye-Lund --- I noticed this while debugging something else, thought I'd just send it upstream directly. src/gallium/auxiliary/meson.build | 2 +- 1 file chan

Re: [Mesa-dev] [PATCH 3/4] i965/gen10: Enable float blend optimization

2017-10-30 Thread Anuj Phogat
On Mon, Oct 30, 2017 at 11:03 AM, Nanley Chery wrote: > On Mon, Oct 02, 2017 at 04:07:59PM -0700, Anuj Phogat wrote: >> This optimization is enabled for previous generations too. >> See Mesa commit c17e214a6b >> On CNL this bit is moved to 3DSTATE_3D_MODE. > > Is this true? Looking at the HW docs,

Re: [Mesa-dev] [PATCH 4/4] i965/gen10: Implement Wa3DStateMode

2017-10-30 Thread Anuj Phogat
On Mon, Oct 30, 2017 at 11:08 AM, Nanley Chery wrote: > On Mon, Oct 02, 2017 at 04:08:00PM -0700, Anuj Phogat wrote: >> Cc: mesa-sta...@lists.freedesktop.org >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/drivers/dri/i965/brw_state_upload.c | 7 +-- >> 1 file changed, 5 insertions(+), 2 de

Re: [Mesa-dev] [PATCH v3 43/48] nir/lower_subgroups: Lower ballot intrinsics to the specified bit size

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 5:10 AM, Iago Toral wrote: > On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote: > > Ballot intrinsics return a bitfield of subgroups. In GLSL and some > > SPIR-V extensions, they return a uint64_t. In SPV_KHR_shader_ballot, > > they return a uvec4. Also, some back

Re: [Mesa-dev] [PATCH v3 39/48] nir: Add a new subgroups lowering pass

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 4:38 AM, Iago Toral wrote: > On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote: > > This commit pulls nir_lower_read_invocations_to_scalar along with > > most > > of the guts of nir_opt_intrinsics (which mostly does subgroup > > lowering) > > into a new nir_lower_sub

Re: [Mesa-dev] [PATCH v3 23/48] intel/fs: Assign constant locations if they haven't been assigned

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 12:43 AM, Iago Toral wrote: > On Fri, 2017-10-27 at 12:43 -0700, Jason Ekstrand wrote: > > On Fri, Oct 27, 2017 at 12:35 AM, Iago Toral wrote: > > This sounds good to me, but I guess it is not really fixing anything, > right? I ask because the subject claims that this pat

[Mesa-dev] [PATCH] radv: bail out when binding the same vertex buffers

2017-10-30 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 00ed7182a7..4b38ece10f 100644 --- a/src/amd/vulkan/radv_cmd_buffer.

Re: [Mesa-dev] [PATCH v3 29/48] intel/cs: Rework the way thread local ID is handled

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 12:33 AM, Iago Toral wrote: > On Fri, 2017-10-27 at 12:37 -0700, Jason Ekstrand wrote: > > On Fri, Oct 27, 2017 at 2:11 AM, Iago Toral wrote: > > On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote: > > Previously, brw_nir_lower_intrinsics added the param and then emi

Re: [Mesa-dev] [PATCH] meson: implement default driver arguments

2017-10-30 Thread Dylan Baker
Quoting Eric Engestrom (2017-10-30 10:29:25) > On Monday, 2017-10-30 10:21:50 -0700, Dylan Baker wrote: > > This allows drivers to be set by OS/arch in a sane manner. > > > > Signed-off-by: Dylan Baker > > --- > > meson.build | 37 +++-- > > meson_options.tx

[Mesa-dev] [PATCH 1/2] meson: Don't link gbm with threads

2017-10-30 Thread Dylan Baker
It's supposed to be linked with pthread-stubs (if the platform needs pthread-stubs). Pthread stubs support isn't (yet) implemented in the meson build, so add a TODO. Signed-off-by: Dylan Baker --- src/gbm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gbm/mes

[Mesa-dev] [PATCH 2/2] meson: set visibility flags on gbm

2017-10-30 Thread Dylan Baker
This is done in autotools, and is an oversight in the meson build. Signed-off-by: Dylan Baker --- src/gbm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gbm/meson.build b/src/gbm/meson.build index fc1816cc17a..2fad2a2a8e3 100644 --- a/src/gbm/meson.build +++

Re: [Mesa-dev] [PATCH v3 19/48] i965/fs/nir: Don't stomp 64-bit values to D in get_nir_src

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 12:15 AM, Iago Toral wrote: > On Fri, 2017-10-27 at 12:21 -0700, Jason Ekstrand wrote: > > On Thu, Oct 26, 2017 at 11:53 PM, Iago Toral wrote: > > On Wed, 2017-10-25 at 16:25 -0700, Jason Ekstrand wrote: > > --- > > src/intel/compiler/brw_fs_nir.cpp | 33

Re: [Mesa-dev] [PATCH 4/4] i965/gen10: Implement Wa3DStateMode

2017-10-30 Thread Nanley Chery
On Mon, Oct 02, 2017 at 04:08:00PM -0700, Anuj Phogat wrote: > Cc: mesa-sta...@lists.freedesktop.org > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_state_upload.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > Assuming my comment in patch 3 is correct, we n

Re: [Mesa-dev] [PATCH 3/4] i965/gen10: Enable float blend optimization

2017-10-30 Thread Nanley Chery
On Mon, Oct 02, 2017 at 04:07:59PM -0700, Anuj Phogat wrote: > This optimization is enabled for previous generations too. > See Mesa commit c17e214a6b > On CNL this bit is moved to 3DSTATE_3D_MODE. Is this true? Looking at the HW docs, I actually found this bit to exist in CACHE_MODE_SS. Bit 9 of

Re: [Mesa-dev] [PATCH 4/4] i965/gen10: Implement Wa3DStateMode

2017-10-30 Thread Jason Ekstrand
On Mon, Oct 30, 2017 at 10:40 AM, Rafael Antognolli < rafael.antogno...@intel.com> wrote: > On Thu, Oct 05, 2017 at 10:53:42AM -0700, Anuj Phogat wrote: > > On Wed, Oct 4, 2017 at 9:29 PM, Jason Ekstrand > wrote: > > > On Wed, Oct 4, 2017 at 3:11 PM, Anuj Phogat > wrote: > > >> > > >> On Mon, Oc

Re: [Mesa-dev] create src/wsi

2017-10-30 Thread Emil Velikov
On 30 October 2017 at 17:05, Dylan Baker wrote: > So I think the consensus is this is okay? > > Emil, is the autotools right here? > Without a clear separation or cleanup of the the existing code, this such move brings no technical benefit. If anything, it makes it harder for people [roughly] fam

Re: [Mesa-dev] [PATCH 4/4] i965/gen10: Implement Wa3DStateMode

2017-10-30 Thread Rafael Antognolli
On Thu, Oct 05, 2017 at 10:53:42AM -0700, Anuj Phogat wrote: > On Wed, Oct 4, 2017 at 9:29 PM, Jason Ekstrand wrote: > > On Wed, Oct 4, 2017 at 3:11 PM, Anuj Phogat wrote: > >> > >> On Mon, Oct 2, 2017 at 7:46 PM, Jason Ekstrand > >> wrote: > >> > On Mon, Oct 2, 2017 at 4:08 PM, Anuj Phogat > >

Re: [Mesa-dev] [PATCH V2 1/4] i965/gen10: Implement WaSampleOffsetIZ workaround

2017-10-30 Thread Rafael Antognolli
On Mon, Oct 23, 2017 at 08:46:26AM -0700, Anuj Phogat wrote: > Ping. Patches 2-4 in this series are still waiting for review. > Anyone interested? > Thanks! > > > > On Fri, Oct 13, 2017 at 3:35 PM, Rafael Antognolli > wrote: > > Hi Anuj, sorry that I missed this patch. Please see below. > > > >

Re: [Mesa-dev] [PATCH 2/2] i965: Check CCS_E compatibility for texture view rendering

2017-10-30 Thread Nanley Chery
On Fri, Oct 27, 2017 at 05:14:16PM -0700, Jason Ekstrand wrote: > On Fri, Oct 27, 2017 at 3:16 PM, Nanley Chery wrote: > > > On Fri, Oct 27, 2017 at 12:52:30PM -0700, Jason Ekstrand wrote: > > > On Fri, Oct 27, 2017 at 12:24 PM, Nanley Chery > > > wrote: > > > > > > > Only use CCS_E to render to

[Mesa-dev] [PATCH] meson: Use true and false instead of yes and no for tristate options

2017-10-30 Thread Dylan Baker
This allows a user to not care whether they're setting a tristate or a boolean option, which is a nice user facing feature, and something I've personally run into. Suggested-by: Adam Jackson Signed-off-by: Dylan Baker --- meson.build | 6 +++--- meson_options.txt | 6 +++--- 2 files chang

[Mesa-dev] [Bug 102677] [OpenGL CTS] KHR-GL45.CommonBugs.CommonBug_PerVertexValidation fails

2017-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102677 Neil Roberts changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH] meson: implement default driver arguments

2017-10-30 Thread Eric Engestrom
On Monday, 2017-10-30 10:21:50 -0700, Dylan Baker wrote: > This allows drivers to be set by OS/arch in a sane manner. > > Signed-off-by: Dylan Baker > --- > meson.build | 37 +++-- > meson_options.txt | 8 > 2 files changed, 39 insertions(+), 6 del

[Mesa-dev] [Bug 103496] svga_screen.c:26:46: error: git_sha1.h: No such file or directory

2017-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103496 --- Comment #3 from Eric Engestrom --- (In reply to Dylan Baker from comment #2) > I think Eric Engstrom sent a fix for this that's been reviewed but hasn't > landed yet. Indeed, I just pushed it: commit 2117d0331020874c28bb66b0596467f960259eb

[Mesa-dev] [PATCH] meson: implement default driver arguments

2017-10-30 Thread Dylan Baker
This allows drivers to be set by OS/arch in a sane manner. Signed-off-by: Dylan Baker --- meson.build | 37 +++-- meson_options.txt | 8 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 24d997b3e0a..43

[Mesa-dev] [Bug 103496] svga_screen.c:26:46: error: git_sha1.h: No such file or directory

2017-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103496 --- Comment #2 from Dylan Baker --- I think Eric Engstrom sent a fix for this that's been reviewed but hasn't landed yet. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.

Re: [Mesa-dev] [PATCH v3 19/43] i965/fs: Support push constants of 16-bit types

2017-10-30 Thread Pohjolainen, Topi
On Mon, Oct 30, 2017 at 05:10:53PM +0100, Chema Casanova wrote: > El 30/10/17 a las 07:44, Pohjolainen, Topi escribió: > > On Sun, Oct 29, 2017 at 11:17:11PM +0100, Chema Casanova wrote: > >> On 29/10/17 19:55, Pohjolainen, Topi wrote: > >>> On Thu, Oct 12, 2017 at 08:38:08PM +0200, Jose Maria Casa

Re: [Mesa-dev] create src/wsi

2017-10-30 Thread Dylan Baker
So I think the consensus is this is okay? Emil, is the autotools right here? Quoting Dylan Baker (2017-10-20 18:00:13) > This very short series creates a new src/wsi folder, and moves wayland-drm > into > it. Basically wsi stuff is scattered about, and is needed by multiple > components > withi

[Mesa-dev] [Bug 103496] svga_screen.c:26:46: error: git_sha1.h: No such file or directory

2017-10-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103496 --- Comment #1 from Brian Paul --- Hi Vinson, can you re-test with ToT? The scons build is working for me, testing at 134a40d2a67. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.__

[Mesa-dev] [PATCH 28/33] intel: genxml: rename output urb offset field

2017-10-30 Thread Lionel Landwerlin
"Output Read Offset" is a bit non-sensical, let's just make this match "Output Length". Signed-off-by: Lionel Landwerlin --- src/intel/genxml/gen10.xml| 6 +++--- src/intel/genxml/gen8.xml | 6 +++--- src/intel/genxml/gen9.xml | 6 +++--

[Mesa-dev] [PATCH 18/33] intel: decoder: simplify field_is_header()

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 7 --- src/intel/common/gen_decoder.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 050926f5642..94e7e15399f 100644 --- a/src/i

[Mesa-dev] [PATCH 27/33] intel: genxml: be consistent about register offset naming

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/genxml/gen10.xml | 8 src/intel/genxml/gen4.xml | 2 +- src/intel/genxml/gen45.xml | 2 +- src/intel/genxml/gen5.xml | 2 +- src/intel/genxml/gen6.xml | 2 +- src/intel/genxml/gen7.xml

[Mesa-dev] [PATCH 32/33] intel: decoder: add function to query shader length

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/tools/disasm.c | 34 ++ src/intel/tools/gen_disasm.h | 2 ++ 2 files changed, 36 insertions(+) diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c index e2f5c11f6f5..c038949d9ec 100644 --- a/src/inte

[Mesa-dev] [PATCH 22/33] intel: decoder: expose missing find_enum()

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h index 658dd7f7b09..81b5beb5baf 100644 --- a/src/intel/common/gen_decoder.h +++ b/src/intel/common/gen_decoder.h

Re: [Mesa-dev] Mesa 17.2.4 release candidate

2017-10-30 Thread Ilia Mirkin
On Mon, Oct 30, 2017 at 12:43 PM, Andres Gomez wrote: > On Mon, 2017-10-30 at 11:39 -0400, Ilia Mirkin wrote: >> On Mon, Oct 30, 2017 at 11:29 AM, Emil Velikov >> wrote: >> > On 28 October 2017 at 21:35, Andres Gomez wrote: >> > > On Fri, 2017-10-27 at 14:14 -0400, Ilia Mirkin wrote: >> > > > O

[Mesa-dev] [PATCH 23/33] intel: decoder: group enum related declarations

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 8 src/intel/common/gen_decoder.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index b0bd161fef3..1d57d350855 100644 --- a/src/

[Mesa-dev] [PATCH 30/33] intel: decoder: change find_instruction() to take first dword

2017-10-30 Thread Lionel Landwerlin
Another step into decoupling memory access from pointers. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c| 4 ++-- src/intel/common/gen_decoder.h| 2 +- src/intel/tools/aubinator.c | 2 +- src/intel/tools/aubinator_error_decod

[Mesa-dev] [PATCH 19/33] intel: decoder: rename internal function to free name

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 94e7e15399f..91076e901fe 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/

[Mesa-dev] [PATCH 24/33] intel: decoder: enable decoding a single field

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 37 + src/intel/common/gen_decoder.h | 14 ++ 2 files changed, 51 insertions(+) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 1d57d350855..bd

[Mesa-dev] [PATCH 31/33] intel: decoder: decouple decoding from memory pointers

2017-10-30 Thread Lionel Landwerlin
We want to introduce a reader interface for accessing memory, so that later on we can use different ways of storing the content of the GTT address space that don't involve a pointer to a linear buffer. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c| 75 ++

[Mesa-dev] [PATCH 07/33] intel: decoder: split out getting the next field and decoding it

2017-10-30 Thread Lionel Landwerlin
Due to the new way we handle fields, we need *not* to forget the first field when decoding instructions. The issue was that the advance function was called first and skipped the first field. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 31 +--

[Mesa-dev] [PATCH 25/33] intel: compiler: abstract printing

2017-10-30 Thread Lionel Landwerlin
This is required to have output redirected to something else than a file descriptor (stdout). Signed-off-by: Lionel Landwerlin --- src/intel/compiler/brw_compile_clip.c | 5 +- src/intel/compiler/brw_compile_sf.c | 5 +- src/intel/compiler/brw_disasm.c | 645 +

[Mesa-dev] [PATCH 29/33] intel: decoder: change group_get_length() to take first dword

2017-10-30 Thread Lionel Landwerlin
This is a first step in not accessing the dwords through pointers. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c| 27 +-- src/intel/common/gen_decoder.h| 2 +- src/intel/tools/aubinator.c | 4 ++--

[Mesa-dev] [PATCH 14/33] intel: decoder: extract instruction/structs length

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 7 +++ src/intel/common/gen_decoder.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index cd18580aea8..2562aa56175 100644 --- a/src/intel/common/gen_de

[Mesa-dev] [PATCH 21/33] intel: decoder: extract field value computation

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 59 ++ 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index a63c09cd37e..b0bd161fef3 100644 --- a/src/inte

[Mesa-dev] [PATCH 20/33] intel: decoder: rename field() to field_value()

2017-10-30 Thread Lionel Landwerlin
We would like to avoid collisions with variables named field. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decod

[Mesa-dev] [PATCH 17/33] intel: common: make intel utils available from C++

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.h | 9 + src/intel/common/gen_device_info.h | 8 src/intel/tools/gen_disasm.h | 8 3 files changed, 25 insertions(+) diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h

[Mesa-dev] [PATCH 12/33] intel: decoder: simplify creation of struct when 0-allocated

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 4 1 file changed, 4 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 0bf705fa9e1..6a6a1f0aca4 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.

[Mesa-dev] [PATCH 16/33] intel: decoder: remove unused platform field

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 2562aa56175..050926f5642 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c

[Mesa-dev] [PATCH 15/33] intel: error-decode: implement a rolling window of programs

2017-10-30 Thread Lionel Landwerlin
If we have more programs than what we can store, aubinator_error_decode will assert. Instead let's have a rolling window of programs. v2: Fix overflowing issues (Eric Engestrom) Signed-off-by: Lionel Landwerlin Reviewed-by: Eric Engestrom --- src/intel/tools/aubinator_error_decode.c | 24 +

[Mesa-dev] [PATCH 11/33] intel: decoder: add destructor for gen_spec

2017-10-30 Thread Lionel Landwerlin
This makes use of ralloc to simplify the destruction. We can also store instructions in hash tables. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 176 +++-- src/intel/common/gen_decoder.h | 15 ++-- 2 files changed, 90 insertions(+),

[Mesa-dev] [PATCH 13/33] intel: decoder: pack iterator variable declarations

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 6a6a1f0aca4..cd18580aea8 100644 --- a/src/intel/common/gen_decoder.c +

[Mesa-dev] [PATCH 09/33] aubinator: print number of dwords per instruction

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/tools/aubinator.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index 48d4456cc16..2c4eaab1701 100644 --- a/src/intel/tools/aubinator.c +++ b/src/intel/tools/aubin

[Mesa-dev] [PATCH 10/33] intel: decoder: expose helper to test header fields

2017-10-30 Thread Lionel Landwerlin
These fields are of little importance as they're used to recognize instructions. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 6 +++--- src/intel/common/gen_decoder.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/s

[Mesa-dev] [PATCH 05/33] intel: decoder: reorder iterator init function

2017-10-30 Thread Lionel Landwerlin
Making the next change more readable. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 040201541ff..ef39c1c1

[Mesa-dev] [PATCH 04/33] intel: common: print out all dword with field spanning multiple dwords

2017-10-30 Thread Lionel Landwerlin
For example, we were skipping Dword 3 in this PIPE_CONTROL : 0x000ce130: 0x7a04: PIPE_CONTROL DWord Length: 4 0x000ce134: 0x0010 : Dword 1 Flush LLC: false Destination Address Type: 0 (PPGTT) LRI Post Sync Operation: 0 (No LRI Operation) Store Data Index: 0 Comma

[Mesa-dev] [PATCH 03/33] intel: decoder: build sorted linked lists of fields

2017-10-30 Thread Lionel Landwerlin
The xml files don't always have fields in order. This might confuse our parsing of the commands. Let's have the fields in order. To do this, the easiest way it to use a linked list. It also helps a bit with the iterator. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 52 ++

[Mesa-dev] [PATCH 01/33] intel: common: expose gen_spec fields

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 13 - src/intel/common/gen_decoder.h | 13 + 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 85880143f00..395ff02908

[Mesa-dev] [PATCH 08/33] intel: decoder: don't read qword outside instruction/struct limit

2017-10-30 Thread Lionel Landwerlin
We used to print invalid data when the last field was being clamped to 32bits due to Dword Length of the whole instruction. Here is an example where the decoder read part of the next instruction instead of stopping at the 32bit limit: 0x000ce0b4: 0x1002: MI_STORE_DATA_IMM 0x000ce0b4: 0x1000

[Mesa-dev] [PATCH 00/33] intel: UI for aubinator

2017-10-30 Thread Lionel Landwerlin
Hi all, This is a proposal for a tool to help debug intel driver through aubdumps. Having gone through implementing (& mostly debugging) the ycbcr extension for anv, I wished I had a better tool than the text output of aubinator. This is the current state of about 1 & 1/2 month of experimenting w

[Mesa-dev] [PATCH 02/33] intel: common: silence compiler warning

2017-10-30 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 395ff02908a..55e7305117c 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common

[Mesa-dev] [PATCH 06/33] intel: decoder: move field name copy

2017-10-30 Thread Lionel Landwerlin
This should be inside the function that actually decodes fields. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index ef39c1c14db..833

  1   2   >