Re: [Mesa-dev] [PATCH] configure.ac: Add radeon to with-vulkan-drivers help message.

2017-01-27 Thread Lionel Landwerlin
I was bitten by that too so : Acked-by: Lionel Landwerlin On 27/01/17 18:47, Bas Nieuwenhuizen wrote: Had someone that tried --with-vulkan-drivers=radv, this will guide people in the right direction. Signed-off-by: Bas Nieuwenhuizen CC: --- configure.ac | 2 +- 1 file changed, 1

Re: [Mesa-dev] [PATCH 2/2] spirv: handle undefined components for OpVectorShuffle

2017-01-30 Thread Lionel Landwerlin
On 27/01/17 09:57, Juan A. Suarez Romero wrote: On Fri, 2017-01-27 at 09:46 +, Lionel Landwerlin wrote: But what the test does is calling OpSpecConstantOp[2], which is the operation we are patching here. And according to the spec, "all Operands must be the s of other constant instruc

[Mesa-dev] [PATCH 0/7] Spirv/Anv: Add support for KHR_shader_draw_parameters

2017-01-31 Thread Lionel Landwerlin
hopefully explained clearly enough in patch 5. Cheers, Lionel Landwerlin (7): compiler: add missing enums for debug spirv: add SPV_KHR_shader_draw_parameters support anv: limit vertex buffers to 31 anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31 anv: always allocate a vertex

[Mesa-dev] [PATCH 5/7] anv: always allocate a vertex element with vertexid or instanceid

2017-01-31 Thread Lionel Landwerlin
(see vec4_vs_visitor::setup_attributes). Therefore we need to allocate an element for the SGVS elements as long as at least one of the SGVS element is needed by the shader. Otherwise our shader we use a gl_DrawIDARB value pull from the URB one element too far (probably garbage). Signed-off-by: Lionel Landwe

[Mesa-dev] [PATCH 2/7] spirv: add SPV_KHR_shader_draw_parameters support

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/compiler/spirv/nir_spirv.h | 1 + src/compiler/spirv/spirv_to_nir.c | 4 src/compiler/spirv/vtn_variables.c | 12 3 files changed, 17 insertions(+) diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h

[Mesa-dev] [PATCH 3/7] anv: limit vertex buffers to 31

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c| 4 ++-- src/intel/vulkan/anv_private.h | 2 +- src/intel/vulkan/genX_pipeline.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index

[Mesa-dev] [PATCH 1/7] compiler: add missing enums for debug

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/compiler/shader_enums.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index 3c5a268687..e704c95a6b 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -208,6

[Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-01-31 Thread Lionel Landwerlin
Enables 10 tests from: dEQP-VK.draw.shader_draw_parameters.* Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 4 src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c

[Mesa-dev] [PATCH 4/7] anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- src/intel/vulkan/genX_pipeline.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index f7894a0574..91b97abec6 100644

[Mesa-dev] [PATCH 6/7] anv: emit DrawID if needed

2017-01-31 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_cmd_buffer.c | 43 +- src/intel/vulkan/genX_pipeline.c | 25 +- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel

[Mesa-dev] [PATCH v2] anv: always allocate a vertex element with vertexid or instanceid

2017-01-31 Thread Lionel Landwerlin
onel) Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/genX_pipeline.c | 12 1 file changed, 12 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 9629ca9bf9..4c1afd0319 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vu

Re: [Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-02-01 Thread Lionel Landwerlin
On 01/02/17 02:35, Anuj Phogat wrote: On Tue, Jan 31, 2017 at 7:00 AM, Lionel Landwerlin wrote: Enables 10 tests from: dEQP-VK.draw.shader_draw_parameters.* and I assume they all pass with this series. Yes :) Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 4

Re: [Mesa-dev] [PATCH 7/7] anv: enable VK_KHR_shader_draw_parameters

2017-02-01 Thread Lionel Landwerlin
eeing any real good way to do that in the indirect draw case so let's go ahead and drop the limit to 31 for now and figure out how to be more clever later. Just gave a try to buffer 33 on Kabylake, that didn't work :( So I think we're stuck with 31 for now. On Tue

[Mesa-dev] [PATCH v2] anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31

2017-02-01 Thread Lionel Landwerlin
v2: use define for buffer ID (Jason) Signed-off-by: Lionel Landwerlin Reviewed-by: Anuj Phogat --- src/intel/vulkan/anv_private.h | 2 ++ src/intel/vulkan/genX_cmd_buffer.c | 2 +- src/intel/vulkan/genX_pipeline.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src

[Mesa-dev] [PATCH v2] anv: emit DrawID if needed

2017-02-01 Thread Lionel Landwerlin
v2: use define for buffer ID (Jason) Signed-off-by: Lionel Landwerlin Reviewed-by: Anuj Phogat --- src/intel/vulkan/anv_private.h | 3 ++- src/intel/vulkan/genX_cmd_buffer.c | 42 +- src/intel/vulkan/genX_pipeline.c | 25 ++- 3

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 02/02/17 04:07, Jason Ekstrand wrote: The only mechanism Vulkan provides for disabling stencil writes is to set the stencil write mask to 0. Since that is dynamic state, we have to move handle it late during command buffer builder. This helps Dota2 by a

Re: [Mesa-dev] [PATCH 1/2] genxml: Add the CACHE_MODE_0 register on gen9

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 02/02/17 06:11, Jason Ekstrand wrote: --- src/intel/genxml/gen9.xml | 28 1 file changed, 28 insertions(+) diff --git a/src/intel/genxml/gen9.xml b/src/intel/genxml/gen9.xml index 671322b..ec29d13 100644 --- a/src/intel/genxml

Re: [Mesa-dev] [PATCH 3/5] anv: Add support for the PMA fix on Broadwell

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 02/02/17 01:43, Jason Ekstrand wrote: In order to get good performance numbers for this, I had to hack up the driver to whack wm_prog_data::uses_kill to true to emulate a discard and used the Sascha "shadowmapping" demo. Setting uses_kill to true d

Re: [Mesa-dev] [PATCH 3/5] anv: Add support for the PMA fix on Broadwell

2017-02-02 Thread Lionel Landwerlin
Oops, miss on the v2. Indeed clearing up the variables in case info == NULL is good! Reviewed-by: Lionel Landwerlin On 02/02/17 04:12, Jason Ekstrand wrote: In order to get good performance numbers for this, I had to hack up the driver to whack wm_prog_data::uses_kill to true to emulate a

Re: [Mesa-dev] [PATCH 5/5] anv/pipeline: Be smarter about depth/stencil state

2017-02-02 Thread Lionel Landwerlin
Thanks, that's pretty clean :) Reviewed-by: Lionel Landwerlin On 02/02/17 01:43, Jason Ekstrand wrote: This seemed to help Dota 2 by a percent or two. --- src/intel/vulkan/genX_pipeline.c | 133 +-- 1 file changed, 99 insertions(+), 34 deletions(-)

Re: [Mesa-dev] [PATCH 0/5] anv: Implement the depth PMA fix on Broadwell

2017-02-02 Thread Lionel Landwerlin
Not sure what happened to patches 1,2 & 4... If you have a branch somewhere, I'll give the remaining Rbs here. Thanks On 02/02/17 01:43, Jason Ekstrand wrote: This little series does a few little cleanups as well as implements the PMA fix on Broadwell. The cleanups are focussed around letting

Re: [Mesa-dev] [PATCH 0/5] anv: Implement the depth PMA fix on Broadwell

2017-02-02 Thread Lionel Landwerlin
Oh, ignore me, my mail client is a bit crap :( On 02/02/17 11:08, Lionel Landwerlin wrote: Not sure what happened to patches 1,2 & 4... If you have a branch somewhere, I'll give the remaining Rbs here. Thanks On 02/02/17 01:43, Jason Ekstrand wrote: This little series does a f

Re: [Mesa-dev] [PATCH 4/5] anv/pipeline: Make a copy of VkPipelineDepthStencilStateCreateinfo

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 02/02/17 01:43, Jason Ekstrand wrote: --- src/intel/vulkan/genX_pipeline.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index

Re: [Mesa-dev] [PATCH 2/5] genxml: Add the CACHE_MODE_1 register on gen8

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 02/02/17 01:43, Jason Ekstrand wrote: --- src/intel/genxml/gen8.xml | 21 + 1 file changed, 21 insertions(+) diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml index 970e637..32ed764 100644 --- a/src/intel/genxml/gen8

Re: [Mesa-dev] [PATCH 2/2] anv: Implement the Sky Lake stencil PMA optimization

2017-02-02 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin The documentation has the following sentence for both CACHE_MODE_0 & CACHE_MODE_1 : "Before changing the value of this register, GFX pipeline must be idle i.e. full flush is required." That seems coherent with a command stream stall. On

Re: [Mesa-dev] [PATCH 3/7] i965/fs: legalize [u]int64 to 32-bit data conversions in lower_d2x

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660 --- src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [Mesa-dev] [PATCH 5/7] i965/fs: Add support for nir_op_[iu]2[iu]32

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660 --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src

Re: [Mesa-dev] [PATCH 6/7] nir: add opcode to perform int64 to bool conversions

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660 --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/nir/nir_opcodes.py | 1 + 2 files changed, 2

Re: [Mesa-dev] [PATCH 7/7] i965/fs: add support for int64 to bool conversion

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660 --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 15 +-- 1 file changed, 13 insertions(+), 2

Re: [Mesa-dev] [PATCH 2/7] i965/fs: Add support for nir_op_[iu]642d

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: From: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp

Re: [Mesa-dev] [PATCH 1/7] i965: Allow int64 conversion operations in channel_expressions

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: From: Jason Ekstrand This fixes 143 of the new piglit tests added by Nicolai Cc: Ian Romanick --- .../dri/i965/brw_fs_channel_expressions.cpp| 48 +++--- 1 file changed, 24

Re: [Mesa-dev] [PATCH 4/7] i965/fs: Add support for nir_op_[iu]642f

2017-02-08 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660 --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src

[Mesa-dev] [PATCH] anv: wsi: report presentation error per image request

2017-02-10 Thread Lionel Landwerlin
first error. This commit also makes the QueuePresentKHR() implementation return the first error encountered. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_wsi.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/intel/vulkan/anv_wsi.c

Re: [Mesa-dev] [PATCH v2] anv/cmd_buffer: Return a VkResult from verify_cmd_parser

2017-02-11 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 11/02/17 05:36, Jason Ekstrand wrote: This fixes a "statement with no effect" compiler warning --- src/intel/vulkan/genX_cmd_buffer.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_b

Re: [Mesa-dev] [PATCH 1/3] i965/sampler_state: Clamp min/max LOD to 14 on gen7+

2017-02-11 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/02/17 23:52, Jason Ekstrand wrote: Cc: "17.0" --- src/mesa/drivers/dri/i965/brw_sampler_state.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_sampler_state.c b/src/mesa/driver

Re: [Mesa-dev] [PATCH 2/3] i965/sampler_state: Pass texObj into update_sampler_state

2017-02-11 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/02/17 23:52, Jason Ekstrand wrote: Cc: "17.0 13.0" --- src/mesa/drivers/dri/i965/brw_sampler_state.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_sampler_state.c b/src/mesa/d

Re: [Mesa-dev] [PATCH 3/3] i965/sampler_state: Set the "Base Mip Level" field on Sandy Bridge

2017-02-11 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 10/02/17 23:52, Jason Ekstrand wrote: Fixes two GL ES 3.0 CTS tests on Sandy Bridge: ES3-CTS.functional.texture.mipmap.cube.base_level.linear_linear ES3-CTS.functional.texture.mipmap.cube.base_level.linear_nearest Cc: "17.0 13.0" --- src/mesa/d

Re: [Mesa-dev] [PATCH 1/2] spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat

2017-02-13 Thread Lionel Landwerlin
Run this by our CI earlier today and got a few failures : dEQP-VK.image.load_store.buffer.r8g8b8a8_snorm dEQP-VK.image.load_store.buffer.r8g8b8a8_unorm dEQP-VK.image.format_reinterpret.buffer.r32_uint_r8g8b8a8_snorm dEQP-VK.image.format_reinterpret.buffer.r8g8b8a8_uint_r8g8b8a8_unorm dEQP-VK.imag

Re: [Mesa-dev] [PATCH 2/2] anv: Add support for shaderStorageImageWriteWithoutFormat

2017-02-13 Thread Lionel Landwerlin
dim != GLSL_SAMPLER_DIM_SUBPASS_MS) This condition is incorrect, now that you moved it here, it should be if (dim == GLSL_SAMPLER_DIM_SUBPASS || dim == GLSL_SAMPLER_DIM_SUBPASS_MS) With that fixed, this patch is : Reviewed-by: Lionel Landwerlin +pipe_binding[i].inp

Re: [Mesa-dev] [PATCH] intel/isl: Add format metadata for typed reads/writes

2017-02-13 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 13/02/17 17:19, Jason Ekstrand wrote: This adds two columns to the format table as well as two helpers for determining whether or not a given format is supported for typed reads and writes. --- src/intel/isl/isl.h| 4 + src/intel/isl/isl_format.c

Re: [Mesa-dev] [PATCH v2 2/3] spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat

2017-02-14 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 14/02/17 10:34, Alex Smith wrote: Allow that capability if the driver indicates that it is supported, and flag whether images are read-only/write-only in the nir_variable (based on the NonReadable and NonWritable decorations), which drivers may need to

Re: [Mesa-dev] [PATCH 1/2] spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat

2017-02-14 Thread Lionel Landwerlin
On 14/02/17 11:19, Iago Toral wrote: On Tue, 2017-02-14 at 09:46 +, Alex Smith wrote: On 14 February 2017 at 08:45, Iago Toral wrote: On Mon, 2017-02-13 at 16:29 +, Lionel Landwerlin wrote: Run this by our CI earlier today and got a few failures : dEQP

Re: [Mesa-dev] [PATCH] anv/apply_pipeline_layout: Set image.write_only to false

2017-02-14 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 13/02/17 16:38, Jason Ekstrand wrote: This makes our driver robust to changes in spirv_to_nir which would set this flag on the variable. Right now, our driver relies on spirv_to_nir *not* setting var->data.image.write_only for correctness. Any patch wh

Re: [Mesa-dev] [PATCH] anv/entrypoints: Only generate entrypoints for supported features

2017-02-14 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin Thanks! On 14/02/17 18:26, Jason Ekstrand wrote: This changes the way anv_entrypoints_gen.py works from generating a table containing every single entrypoint in the XML to just the ones that we actually need. There's no reason for us to burn entrypoint

Re: [Mesa-dev] [PATCH] spirv: handle SpvOpUConvert in proper place.

2017-02-15 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 15/02/17 08:26, Dave Airlie wrote: From: Dave Airlie This was falling into the quantizetof16 path. Signed-off-by: Dave Airlie --- src/compiler/spirv/vtn_alu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv

Re: [Mesa-dev] [PATCH v2 1/4] driconf: add allow_higher_compat_version option

2017-02-15 Thread Lionel Landwerlin
Hey Samuel, I think you forgot to define the default value for our driver. I'm not too familiar with this code. Is there a way to have default values for all dri drivers? Thanks, - Lionel On 15/02/17 16:42, Samuel Pitoiset wrote: On 02/15/2017 05:36 PM, Mark Janes wrote: With this series

[Mesa-dev] [PATCH] i965: define default allow_higher_compat_version value

2017-02-15 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Fixes: 9d16f3903e2 ("driconf: add allow_higher_compat_version option") --- src/mesa/drivers/dri/i965/intel_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_scre

[Mesa-dev] [PATCH shader-db 0/4] Enable running shader-db without actual hardware

2017-02-16 Thread Lionel Landwerlin
ivers. Let me know if you're interested in doing this, I'd love to try potential patches. Cheers, Lionel Landwerlin (4): run: add -j option to select number of threads run: add -o option to override loaded driver run: set INTEL_NO_HW together with INTEL_DEVID_OVERRIDE add specia

[Mesa-dev] [PATCH shader-db 1/4] run: add -j option to select number of threads

2017-02-16 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- run.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run.c b/run.c index 2654bff..d2ec8c6 100644 --- a/run.c +++ b/run.c @@ -307,7 +307,7 @@ const struct platform platforms[] = { void print_usage(const char *prog_name

[Mesa-dev] [PATCH shader-db 2/4] run: add -o option to override loaded driver

2017-02-16 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- run.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/run.c b/run.c index d2ec8c6..62c19c8 100644 --- a/run.c +++ b/run.c @@ -307,7 +307,7 @@ const struct platform platforms[] = { void print_usage(const char *prog_name

[Mesa-dev] [PATCH shader-db 4/4] add special script to run on intel hardware

2017-02-16 Thread Lionel Landwerlin
dware that doesn't have a /dev/dri/renderD128. Example : ./intel_run -j70 -pskl -oi965 shaders Signed-off-by: Lionel Landwerlin --- Makefile | 10 ++- intel_run| 5 ++ intel_stub.c | 237 +++ 3 files changed, 251 insert

[Mesa-dev] [PATCH shader-db 3/4] run: set INTEL_NO_HW together with INTEL_DEVID_OVERRIDE

2017-02-16 Thread Lionel Landwerlin
Since we're already asking the driver to generate code for a different hardware than what we're running on, better not even bother with emitting any batch. Signed-off-by: Lionel Landwerlin --- run.c | 1 + 1 file changed, 1 insertion(+) diff --git a/run.c b/run.c index 62c19c8..7543

[Mesa-dev] [PATCH] i965/fs: fix uninitialized memory access

2017-02-16 Thread Lionel Landwerlin
Found while running shader-db under valgrind. Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH v2] run: add -j option to select number of threads

2017-02-17 Thread Lionel Landwerlin
v2: Also drop the '-1' in favor of '-j1' (Matt) Signed-off-by: Lionel Landwerlin --- run.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/run.c b/run.c index 2654bff..0e77926 100644 --- a/run.c +++ b/run.c @@ -307,9 +307,7 @@ const struc

Re: [Mesa-dev] [PATCH shader-db 3/4] run: set INTEL_NO_HW together with INTEL_DEVID_OVERRIDE

2017-02-17 Thread Lionel Landwerlin
On 16/02/17 20:02, Kenneth Graunke wrote: On Thursday, February 16, 2017 4:29:50 AM PST Lionel Landwerlin wrote: Since we're already asking the driver to generate code for a different hardware than what we're running on, better not even bother with emitting any batch. Signed-off-

Re: [Mesa-dev] [PATCH 0/3] i965: INTEL_performance_query for pipeline stats

2017-02-17 Thread Lionel Landwerlin
Looks good to me. This series is : Reviewed-by: Lionel Landwerlin On 15/02/17 21:37, Robert Bragg wrote: To hopefully make progress towards landing support for OA unit metrics exposed via INTEL_performance_query the idea here is to first just tackle upstreaming the backend rework with an

Re: [Mesa-dev] [PATCH 2/4] anv/query: Perform CmdResetQueryPool on the GPU

2017-02-20 Thread Lionel Landwerlin
On 18/02/17 23:59, Jason Ekstrand wrote: This fixes a some rendering corruption in The Talos Principle Cc: "13.0 17.0" --- src/intel/vulkan/anv_query.c | 22 -- src/intel/vulkan/genX_cmd_buffer.c | 27 +++ 2 files changed, 27 insertions(+),

Re: [Mesa-dev] [PATCH 1/4] genxml: Make MI_STORE_DATA_IMM more consistent

2017-02-20 Thread Lionel Landwerlin
I have a tiny suggestion below and also one on patch 2. Regardless, this series is : Reviewed-by: Lionel Landwerlin On 18/02/17 23:59, Jason Ekstrand wrote: --- src/intel/genxml/gen7.xml | 2 +- src/intel/genxml/gen75.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [Mesa-dev] [PATCH] anv/query: clflush the bo map on non-LLC platforms

2017-02-20 Thread Lionel Landwerlin
On 18/02/17 21:32, Jason Ekstrand wrote: Found by inspection Cc: "13.0 17.0" --- src/intel/vulkan/anv_query.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_query.c b/src/intel/vulkan/anv_query.c index 293257b..d674e83 100644 --- a/src/intel/vulkan/anv_query.c ++

[Mesa-dev] [PATCH] isl: add MCS width constraint 16 samples

2017-02-20 Thread Lionel Landwerlin
Applies on top of Jason's patch : https://patchwork.freedesktop.org/patch/139603/ Signed-off-by: Lionel Landwerlin Cc: Jason Ekstrand --- src/intel/isl/isl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 1a47da5257..3b4579b343 1

Re: [Mesa-dev] [PATCH 2/2] anv: Enable MSAA compression

2017-02-20 Thread Lionel Landwerlin
On 18/02/17 00:03, Jason Ekstrand wrote: This just enables basic MSAA compression (no fast clears) for all multisampled surfaces. This improves the framerate of the Sascha "multisampling" demo by 76% on my Sky Lake laptop. Running Talos on medium settings with 8x MSAA, this improves the framera

[Mesa-dev] [PATCH v2] isl: add MCS width constraint 16 samples

2017-02-20 Thread Lionel Landwerlin
Applies on top of Jason's patch : https://patchwork.freedesktop.org/patch/139603/ Signed-off-by: Lionel Landwerlin Cc: Jason Ekstrand --- src/intel/isl/isl.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 1a47da5257..b7f3a

Re: [Mesa-dev] [PATCH 2/3] isl: add MCS width constraint 16 samples

2017-02-20 Thread Lionel Landwerlin
On 20/02/17 18:09, Jason Ekstrand wrote: From: Lionel Landwerlin v3 (Jason Ekstrand): Add a comment explaining why Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/isl/isl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/intel/isl/isl.c b

Re: [Mesa-dev] [PATCH 2/3] isl: add MCS width constraint 16 samples

2017-02-20 Thread Lionel Landwerlin
On 20/02/17 19:12, Jason Ekstrand wrote: On Mon, Feb 20, 2017 at 10:33 AM, Lionel Landwerlin mailto:lionel.g.landwer...@intel.com>> wrote: On 20/02/17 18:09, Jason Ekstrand wrote: From: Lionel Landwerlin mailto:lionel.g.landwer...@intel.com>> v3 (Jason Ekst

Re: [Mesa-dev] [PATCH 3/3] anv: Enable MSAA compression

2017-02-20 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 20/02/17 18:09, Jason Ekstrand wrote: This just enables basic MSAA compression (no fast clears) for all multisampled surfaces. This improves the framerate of the Sascha "multisampling" demo by 76% on my Sky Lake laptop. Running Talos on medium set

Re: [Mesa-dev] [PATCH v2 0/6] anv: Query cleanups and fixes

2017-02-20 Thread Lionel Landwerlin
This series is : Reviewed-by: Lionel Landwerlin On 20/02/17 19:25, Jason Ekstrand wrote: This series is a v2 of some of the patches I sent out on Saturday to fix queries. I've incorporated the review feedback from Lionel. All but the last two patches are CC'd to stable for bot

Re: [Mesa-dev] [PATCH 1/5] intel/blorp: Explicitly flush all allocated state

2017-02-21 Thread Lionel Landwerlin
On 20/02/17 19:21, Jason Ekstrand wrote: Found by inspection. However, I expect it fixes real bugs when using blorp from Vulkan on little-core platforms. Cc: "13.0 17.0" --- src/intel/blorp/blorp_genX_exec.h | 17 - src/intel/vulkan/genX_blorp_exec.c | 8

Re: [Mesa-dev] [PATCH 0/5] anv: Fix and rework flushing

2017-02-21 Thread Lionel Landwerlin
Nice cleanup, patches 2->5 are : Reviewed-by: Lionel Landwerlin Just one question on patch 1. On 20/02/17 19:21, Jason Ekstrand wrote: The first patch in this little series should fix actual bugs on little-core platforms because it makes BLORP properly clflush it's dynamic state i

Re: [Mesa-dev] [PATCH v3 1/5] intel/blorp: Explicitly flush all allocated state

2017-02-21 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 21/02/17 15:47, Jason Ekstrand wrote: Found by inspection. However, I expect it fixes real bugs when using blorp from Vulkan on little-core platforms. Cc: "13.0 17.0" --- src/intel/blorp/blorp_genX_exec.h | 19 ++-

[Mesa-dev] [PATCH 0/3] anv/blorp/i965: pipe control blumping

2017-02-22 Thread Lionel Landwerlin
s. We can also centralize pipe controls in anv and implement one of the workaround we need on IVB/BYT. Cheers, Lionel Landwerlin (3): anv/blorp/i965: blump blorp's pipe controls back into the embedding driver anv: centralize PIPE_CONTROLs anv: implement WaCsStallAtEveryFourthPipeco

[Mesa-dev] [PATCH 1/3] anv/blorp/i965: blump blorp's pipe controls back into the embedding driver

2017-02-22 Thread Lionel Landwerlin
At the moment, we don't seem to miss any workaround from having blorp's pipe controls not tracked by the embedding driver, but this should make things more robust if something new comes up. Signed-off-by: Lionel Landwerlin --- src/intel/blorp/blorp_genX_exec.h

[Mesa-dev] [PATCH 2/3] anv: centralize PIPE_CONTROLs

2017-02-22 Thread Lionel Landwerlin
This allows us to monitor pipe controls and apply workarounds in a single location if needed. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_genX.h| 26 ++ src/intel/vulkan/anv_private.h | 8 src/intel/vulkan/genX_blorp_exec.c | 4

[Mesa-dev] [PATCH 3/3] anv: implement WaCsStallAtEveryFourthPipecontrol for gen7

2017-02-22 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_batch_chain.c | 5 + src/intel/vulkan/anv_pipeline.c| 2 ++ src/intel/vulkan/anv_private.h | 4 src/intel/vulkan/genX_cmd_buffer.c | 21 +++-- 4 files changed, 30 insertions(+), 2 deletions(-) diff

Re: [Mesa-dev] [PATCH] anv: ensure that we do not emit negative Depth in 3DSTATE_DEPTH_BUFFER

2017-02-22 Thread Lionel Landwerlin
I can't reproduce on the vulkan-cts-next-dev (I just pull -r, so I shouldn't miss anything right?). On 22/02/17 14:45, Iago Toral Quiroga wrote: This fixes a number of new CTS tests that would crash otherwise: dEQP-VK.pipeline.render_to_image.* --- src/intel/vulkan/genX_cmd_buffer.c | 3 ++-

Re: [Mesa-dev] [PATCH] anv/blorp/clear_subpass: Only set surface clear color for fast clears

2017-02-23 Thread Lionel Landwerlin
I must be missing something, but I'm struggling to see why this patch change anything. Why does it matter if we write a clear color in SURFACE_STATE? Shouldn't the usage of that color value only depend on whether we enable 3DSTATE_PS.RenderTargetFastClearEnable for instance? - Lionel On 22/02

Re: [Mesa-dev] [PATCH] anv/blorp/clear_subpass: Only set surface clear color for fast clears

2017-02-23 Thread Lionel Landwerlin
On 23/02/17 16:26, Jason Ekstrand wrote: On Feb 23, 2017 8:03 AM, "Lionel Landwerlin" mailto:lionel.g.landwer...@intel.com>> wrote: I must be missing something, but I'm struggling to see why this patch change anything. Why does it matter if we write a clear c

Re: [Mesa-dev] [PATCH 1/2] compiler: Free types in _mesa_glsl_release_types() rather than autofree.

2017-02-27 Thread Lionel Landwerlin
Does this fix the double free issue I've been seeing in shader-db? Regardless : Reviewed-by: Lionel Landwerlin On 27/02/17 12:23, Kenneth Graunke wrote: Instead of using ralloc_autofree_context() to install an atexit() handler to ralloc_free(glsl_type::mem_ctx), we can simply free them

Re: [Mesa-dev] [PATCH 2/2] ralloc: Delete autofree handling.

2017-02-27 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 27/02/17 12:23, Kenneth Graunke wrote: There was exactly one user of this, and I just removed it. It also accessed an implicit global context, with no locking. This meant that it was only safe if all callers of ralloc_autofree_context() held the same lock

Re: [Mesa-dev] [PATCH] i965: Move intel_resolve_map.[ch] from i965_compiler_FILES to i965_FILES

2017-02-27 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 27/02/17 12:54, Kenneth Graunke wrote: I have no idea why these were part of the compiler files. They're miptree related code, and the compiler doesn't appear to use them. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/Makefile.s

Re: [Mesa-dev] [PATCH 5/8] i965: Add script to gen code for OA counter queries

2017-02-27 Thread Lionel Landwerlin
ssion from your format to the new one. Regardless, this series is : Reviewed-by: Lionel Landwerlin Thanks! - Lionel On 24/02/17 13:58, Robert Bragg wrote: Avoiding lots of error prone boilerplate and easing our ability to add + maintain support for multiple OA performance counter queries for

Re: [Mesa-dev] [PATCH] anv: Bump advertised version to 1.0.42

2017-02-27 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 27/02/17 17:25, Jason Ekstrand wrote: We've been following the spec changes. --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 51

[Mesa-dev] [PATCH 6/6] anv: add VK_KHR_descriptor_update_template support

2017-02-27 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_cmd_buffer.c | 33 src/intel/vulkan/anv_descriptor_set.c | 146 src/intel/vulkan/anv_device.c | 4 + src/intel/vulkan/anv_entrypoints_gen.py | 1

[Mesa-dev] [PATCH 5/6] anv: add VK_KHR_push_descriptor support

2017-02-27 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_cmd_buffer.c | 91 + src/intel/vulkan/anv_device.c | 12 + src/intel/vulkan/anv_entrypoints_gen.py | 1 + src/intel/vulkan/anv_private.h | 13

[Mesa-dev] [PATCH 1/6] anv: move buffer_view declaration

2017-02-27 Thread Lionel Landwerlin
We will need this declaration closer for readability later. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_private.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src

[Mesa-dev] [PATCH 3/6] anv: descriptors: extract writing of descriptors elements

2017-02-27 Thread Lionel Landwerlin
This will be reused later on. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_descriptor_set.c | 214 +- src/intel/vulkan/anv_private.h| 29 + 2 files changed, 162 insertions(+), 81 deletions(-) diff --git a

[Mesa-dev] [PATCH 4/6] anv: descriptor: make descriptor writing take a stream allocator

2017-02-27 Thread Lionel Landwerlin
This allows us to allocate surface states from the command buffer when pushing descriptor sets rather than allocating them through a descriptor set pool. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_descriptor_set.c | 9 + src/intel/vulkan

[Mesa-dev] [PATCH 2/6] anv: make layout size computation helper available across compilation units

2017-02-27 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_descriptor_set.c | 6 +++--- src/intel/vulkan/anv_private.h| 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan

[Mesa-dev] [PATCH 0/6] Anv: enable KHR_push_descriptor & KHR_descriptor_update_template

2017-02-27 Thread Lionel Landwerlin
Hi all, Here is a small series to enable 2 extensions from vulkan 1.0.42 : - VK_KHR_push_descriptor - VK_KHR_descriptor_update_template Cheers, Lionel Landwerlin (6): anv: move buffer_view declaration anv: make layout size computation helper available across compilation units anv

Re: [Mesa-dev] [PATCH v3 01/15] anv: anv_entrypoints_gen.py: use a main function

2017-02-28 Thread Lionel Landwerlin
Patches 1-6 are : Reviewed-by: Lionel Landwerlin Thanks! On 24/02/17 18:21, Dylan Baker wrote: This is just good practice. Signed-off-by: Dylan Baker --- src/intel/vulkan/anv_entrypoints_gen.py | 458 - 1 file changed, 233 insertions(+), 225 deletions(-) diff

[Mesa-dev] [PATCH] aubinator: add a custom handler for immediate register load

2016-09-18 Thread Lionel Landwerlin
arguments (Sirisha) Print out register name Signed-off-by: Lionel Landwerlin Cc: Sirisha Gandikota --- src/intel/tools/aubinator.c | 17 - src/intel/tools/decoder.c | 29 +++-- src/intel/tools/decoder.h | 4 3 files changed, 47 insertions(+), 3

[Mesa-dev] [PATCH] spirv: fix AtomicLoad/Store on images

2016-09-19 Thread Lionel Landwerlin
OpAtomicLoad/Store should have pointer to images just like the rest of the atomic operators. These couple of lines were poorly copied from the ssbo/shared_vars cases (the only ones currently tests by the CTS). Fixes 2afb950161f847d9b0a7 "spirv/nir: Add support for OpAtomicLoad/Store" Cc: Timothy A

Re: [Mesa-dev] [PATCH] spirv: fix AtomicLoad/Store on images

2016-09-19 Thread Lionel Landwerlin
Not that I saw. I'll add some. On Sep 19, 2016 9:36 AM, "Lionel Landwerlin" <mailto:llandwer...@gmail.com>> wrote: OpAtomicLoad/Store should have pointer to images just like the rest of the atomic operators. These couple of lines were poorly copied from the

Re: [Mesa-dev] [PATCH 1/3] anv: device: calculate compute thread numbers using subslices numbers

2016-09-20 Thread Lionel Landwerlin
On Tue, 2016-09-20 at 16:48 -0700, Kenneth Graunke wrote: > On Friday, September 9, 2016 11:45:07 AM PDT Lionel Landwerlin wrote: > [snip] > > > > diff --git a/src/intel/vulkan/anv_private.h > > b/src/intel/vulkan/anv_private.h > > index 99b3acf..aa9be69 100

[Mesa-dev] [PATCH 2/3] i965: get rid of duplicated values from gen_device_info

2016-09-22 Thread Lionel Landwerlin
Now that we have gen_device_info mutable, we can update its values and drop all copies we had in brw_context. Signed-off-by: Lionel Landwerlin Cc: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_compute.c | 3 ++- src/mesa/drivers/dri/i965/brw_context.c | 22 +- src

[Mesa-dev] [PATCH 0/3] anv/i965: make gen_device_info mutable

2016-09-22 Thread Lionel Landwerlin
gen_device_info (we only have the slices number at the moment). Also factoring out the update of gen_device_info into src/intel/common might make sense. Any comments? Cheers, Lionel Landwerlin (3): intel/i965: make gen_device_info mutable i965: get rid of duplicated values from gen_device_info anv: get

[Mesa-dev] [PATCH 3/3] anv: get rid of duplicated values from gen_device_info

2016-09-22 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin Cc: Kenneth Graunke --- src/intel/vulkan/anv_allocator.c | 15 --- src/intel/vulkan/anv_device.c| 22 +++--- src/intel/vulkan/anv_private.h | 11 --- src/intel/vulkan/gen7_pipeline.c | 11 ++- src/intel/vulkan

[Mesa-dev] [PATCH 1/3] intel/i965: make gen_device_info mutable

2016-09-22 Thread Lionel Landwerlin
Graunke Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_device_info.c | 11 ++-- src/intel/common/gen_device_info.h | 2 +- .../isl/tests/isl_surf_get_image_offset_test.c | 18 --- src/intel/tools/disasm.c | 4 +- src

Re: [Mesa-dev] [PATCH v2] intel/i965: fix resource leak

2016-09-25 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 25/09/16 16:06, Nayan Deshmukh wrote: CovID: 1373370 v2: fix indentation Signed-off-by: Nayan Deshmukh --- src/intel/tools/disasm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c

[Mesa-dev] [PATCH 1/2] i965: drop copy of NumImages

2016-09-26 Thread Lionel Landwerlin
We can access this value through gl_shader_program. Signed-off-by: Lionel Landwerlin Cc: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_compiler.h | 1 - src/mesa/drivers/dri/i965/brw_cs.c| 1 - src/mesa/drivers/dri/i965/brw_gs.c| 1 - src/mesa/drivers/dri/i965/brw_tcs.c

[Mesa-dev] [PATCH 2/2] i965: use L3 data cache for SSBOs

2016-09-26 Thread Lionel Landwerlin
atomic way but instead the number of atomic counters manipulated by the shader. Signed-off-by: Lionel Landwerlin Cc: Jason Ekstrand --- src/mesa/drivers/dri/i965/gen7_l3_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen7_l3_state.c b/src/m

  1   2   3   4   5   6   7   8   9   10   >