Re: [Mesa-dev] [PATCH 0/2] fix load of unpacked double vector input varyings

2016-06-01 Thread Samuel Iglesias Gonsálvez
On 02/06/16 07:43, Timothy Arceri wrote: > On Thu, 2016-06-02 at 07:22 +0200, Samuel Iglesias Gonsálvez wrote: >> On 26/05/16 07:56, Samuel Iglesias Gonsálvez wrote: >>> >>> Hello, >>> >>> Timothy found that tests with unpacked double vector input varyings >>> were failing in i965 driver. For

Re: [Mesa-dev] [PATCH 0/2] fix load of unpacked double vector input varyings

2016-06-01 Thread Timothy Arceri
On Thu, 2016-06-02 at 07:22 +0200, Samuel Iglesias Gonsálvez wrote: > On 26/05/16 07:56, Samuel Iglesias Gonsálvez wrote: > > > > Hello, > > > > Timothy found that tests with unpacked double vector input varyings > > were failing in i965 driver. For example, this is happening when > > using

Re: [Mesa-dev] [PATCH] i965: Add missing types to type_sz().

2016-06-01 Thread Francisco Jerez
Matt Turner writes: > Coverity warns in multiple places about the potential for division by > zero, caused by this function's default case. > > Cc: Francisco Jerez Reviewed-by: Francisco Jerez > --- >

[Mesa-dev] [PATCH] glsl: stop allocating memory for SSBOs and builtins

2016-06-01 Thread Timothy Arceri
--- src/compiler/glsl/link_uniforms.cpp | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index a7f136c..571c49f 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++

Re: [Mesa-dev] [PATCH 0/2] fix load of unpacked double vector input varyings

2016-06-01 Thread Samuel Iglesias Gonsálvez
On 26/05/16 07:56, Samuel Iglesias Gonsálvez wrote: > Hello, > > Timothy found that tests with unpacked double vector input varyings > were failing in i965 driver. For example, this is happening when > using explicit locations because Mesa disables varying packing for > that case. > > These

Re: [Mesa-dev] [PATCHv2 13/25] i965/fs: Skip SIMD lowering destination zipping if possible.

2016-06-01 Thread Jason Ekstrand
Looks good. R-B On Wed, Jun 1, 2016 at 5:21 PM, Francisco Jerez wrote: > Skipping the temporary allocation and copy instructions is easy (just > return dst), but the conditions used to find out whether the copy can > be optimized out safely without breaking the program

Re: [Mesa-dev] [PATCH v11] mesa: Add MESA_SHADER_CAPTURE_PATH for writing .shader_test files.

2016-06-01 Thread Matt Turner
On Wed, Jun 1, 2016 at 12:01 PM, Kenneth Graunke wrote: > This writes linked shader programs to .shader_test files to > $MESA_SHADER_CAPTURE_PATH in the format used by shader-db > (http://cgit.freedesktop.org/mesa/shader-db). > > It supports both GLSL shaders and ARB

[Mesa-dev] [PATCH 1/2] i965: Add _NEW_POINT to a couple of comments.

2016-06-01 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke Cc: "12.0" --- src/mesa/drivers/dri/i965/gen6_sf_state.c | 2 +- src/mesa/drivers/dri/i965/gen7_sf_state.c | 2 +- src/mesa/drivers/dri/i965/gen8_sf_state.c | 2 +- 3 files changed, 3 insertions(+), 3

[Mesa-dev] [PATCH 2/2] i965: Fix point size with tessellation/geometry shaders.

2016-06-01 Thread Kenneth Graunke
I believe we were using the state-based point size when either the tessellation evaluation or geometry shader, but the vertex shader didn't write it. If the last enabled stage writes it (corresponding to brw_vue_map_geom_out), we should use the shader's value, otherwise state. This should handle

[Mesa-dev] [PATCH] mesa/copyimage: report INVALID_VALUE for missing cube array

2016-06-01 Thread Dave Airlie
From: Dave Airlie The specs says INVALID_VALUE for exceeding dimensions, which is really what is happening here. This fixes: GL45-CTS.copy_image.non_existent_mipmap Signed-off-by: Dave Airlie --- src/mesa/main/copyimage.c | 2 +- 1 file changed, 1

[Mesa-dev] [PATCH 1/6] anv/pipeline: Silently pass tests if depth or stencil is missing

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" --- src/intel/vulkan/gen7_pipeline.c | 4 +++- src/intel/vulkan/gen8_pipeline.c | 4 +++- src/intel/vulkan/genX_pipeline_util.h | 30 +- 3 files changed, 35

[Mesa-dev] [PATCH 6/6] anv/pipeline: Add support for early depth stencil

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" --- src/intel/vulkan/gen7_pipeline.c | 10 +- src/intel/vulkan/gen8_pipeline.c | 9 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 2/6] nir/info: Get rid of uses_interp_var_at_offset

2016-06-01 Thread Jason Ekstrand
We were using this briefly in the i965 driver to trigger recompiles but we haven't been using it since we switched to the NIR y-transform lowering pass. Signed-off-by: Jason Ekstrand --- src/compiler/glsl/glsl_to_nir.cpp | 3 --- src/compiler/nir/nir.h | 3 ---

[Mesa-dev] [PATCH 3/6] i965/fs Add a wm_prog_data bit for has_side_effects

2016-06-01 Thread Jason Ekstrand
This is more accurate than calling _mesa_active_fragment_shader_has_side_effects because it looks at whether or not the SSBOs, images, or atomic buffers are actually written rather than just existing in the program. Signed-off-by: Jason Ekstrand Cc: "12.0"

[Mesa-dev] [PATCH 5/6] mesa: Get rid of _mesa_active_fragment_shader_has_side_effects

2016-06-01 Thread Jason Ekstrand
It is no longer used. Signed-off-by: Jason Ekstrand --- src/mesa/main/mtypes.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 2233526..4f93a39 100644 --- a/src/mesa/main/mtypes.h +++

[Mesa-dev] [PATCH 4/6] i965/ps_state: Use wm_prog_data.has_side_effects

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/gen7_wm_state.c | 8 +++- src/mesa/drivers/dri/i965/gen8_ps_state.c | 7 +++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c

[Mesa-dev] [PATCH] mesa/copyimage: fix num samples check to handle renderbuffers.

2016-06-01 Thread Dave Airlie
From: Dave Airlie This test was only happening for textures, but there is nothing in the spec to say this, so test it for all cases. This fixes: GL45-CTS.copy_image.invalid_target Signed-off-by: Dave Airlie --- src/mesa/main/copyimage.c | 11

Re: [Mesa-dev] [PATCH 2/2] clover: fix getting scalar args api size

2016-06-01 Thread Jan Vesely
On Wed, 2016-06-01 at 14:36 +0200, Serge Martin wrote: > This fix getting the size of a struct arg. vec3 types still work ok. > Only buit-in args need to have power of two alignement, getTypeAllocSize > reports the corect size. "alignment", "correct" otherwise LGTM. you probably want to cc

Re: [Mesa-dev] [PATCH 2/9] nir/lower_indirect_derefs: Use the direct array deref for recursion

2016-06-01 Thread Kenneth Graunke
On Wednesday, June 1, 2016 2:44:53 PM PDT Jason Ekstrand wrote: > This fixes about 100 of the new Vulkan CTS tests. > > Signed-off-by: Jason Ekstrand > Cc: "12.0" > Cc: Connor Abbott > Cc: Ian Romanick

Re: [Mesa-dev] [PATCH 7/9] anv/pipeline: Silently pass tests if depth or stencil is missing

2016-06-01 Thread Kenneth Graunke
On Wednesday, June 1, 2016 2:44:58 PM PDT Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand > Cc: "12.0" > Cc: Ian Romanick > --- > src/intel/vulkan/gen7_pipeline.c | 12 ++-- >

Re: [Mesa-dev] [PATCH 01/68] i965: move program id generation

2016-06-01 Thread Timothy Arceri
On Wed, 2016-06-01 at 16:22 +1000, Timothy Arceri wrote: > This generates the program ids at cache upload time rather than at > program creation time. > > Moving the id generation here will be useful for on-disk shader > cache support because it means we don't generate ids if there was > a cache

Re: [Mesa-dev] [PATCH 00/10] R600: Cache flush fixes and cleanup v2

2016-06-01 Thread Grazvydas Ignotas
On Wed, Jun 1, 2016 at 9:57 PM, Marek Olšák wrote: > Hi, > > This is version 2 of the previous series. This time it's been tested!! > > Tested cards: > - RV670 > - RV730 > - EG/REDWOOD > - CAYMAN All good on JUNIPER now (piglit and a few random games). Tested-by: Grazvydas

[Mesa-dev] [PATCHv2 13/25] i965/fs: Skip SIMD lowering destination zipping if possible.

2016-06-01 Thread Francisco Jerez
Skipping the temporary allocation and copy instructions is easy (just return dst), but the conditions used to find out whether the copy can be optimized out safely without breaking the program are rather complex: The destination must be exactly one component of at most the execution width of the

Re: [Mesa-dev] [PATCH 10/10] gallium/radeon: don't use the DMA ring for pipelined buffer uploads

2016-06-01 Thread Vedran Miletić
On 06/01/2016 08:57 PM, Marek Olšák wrote: From: Marek Olšák Submitting a DMA IB flushes the GFX IB and all GPU caches. Reviewed-by: Alex Deucher On Tonga 380X, this improves The Talos Principle from 8.3 fps to 28.3 fps (all graphics

Re: [Mesa-dev] [PATCH 0/9] anv: Fix several of the new Vulkan CTS tests

2016-06-01 Thread Kenneth Graunke
On Wednesday, June 1, 2016 2:44:51 PM PDT Jason Ekstrand wrote: > I recently grabbed the latest dev version of the Vulkan CTS and ran it on > our driver. This series fixes a bunch of the bugs that it exposed. In an > effort to get more people involved in Vulkan development and in the hopes > of

[Mesa-dev] [PATCH 16.1/24] i965/vec4: Fix cmod propagation not to propagate non-identity cmod into CMP(N).

2016-06-01 Thread Francisco Jerez
The conditional mod of these instructions determines the semantics of the comparison itself (rather than being evaluated based on the result of the instruction as is usually the case for most other instructions that allow conditional mods), so it's in general not legal to propagate a conditional

Re: [Mesa-dev] [Mesa-stable] [PATCH 3/5] mesa: Fix add_index_to_name logic

2016-06-01 Thread Timothy Arceri
On Wed, 2016-06-01 at 14:55 -0700, Ian Romanick wrote: > On 05/31/2016 04:45 PM, Ian Romanick wrote: > > > > On 05/31/2016 02:44 PM, Timothy Arceri wrote: > > > > > > On Tue, 2016-05-31 at 11:52 -0700, Ian Romanick wrote: > > > > > > > > From: Ian Romanick > > > > >

Re: [Mesa-dev] [PATCH 5/7] isl: automake: ensure that we (can) clean the generated files

2016-06-01 Thread Jason Ekstrand
On Jun 1, 2016 4:21 PM, "Jason Ekstrand" wrote: > > > On May 31, 2016 9:27 AM, "Emil Velikov" wrote: > > > > From: Emil Velikov > > > > Signed-off-by: Emil Velikov > > --- > >

Re: [Mesa-dev] [PATCH 1/7] isl: automake: don't include isl_format_layout.c in two lists.

2016-06-01 Thread Jason Ekstrand
On Jun 1, 2016 4:20 PM, "Jason Ekstrand" wrote: > > > On May 31, 2016 9:27 AM, "Emil Velikov" wrote: > > > > From: Emil Velikov > > > > Including the file in both ISL_FILES and ISL_GENERATED_FILES makes > > the actual

Re: [Mesa-dev] [PATCH 5/7] isl: automake: ensure that we (can) clean the generated files

2016-06-01 Thread Jason Ekstrand
On May 31, 2016 9:27 AM, "Emil Velikov" wrote: > > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/swr/Makefile.am | 1 + > src/intel/isl/Makefile.am | 1 + > 2 files

Re: [Mesa-dev] [PATCH 1/7] isl: automake: don't include isl_format_layout.c in two lists.

2016-06-01 Thread Jason Ekstrand
On May 31, 2016 9:27 AM, "Emil Velikov" wrote: > > From: Emil Velikov > > Including the file in both ISL_FILES and ISL_GENERATED_FILES makes > the actual dependency list less obvious. > > Signed-off-by: Emil Velikov

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965/fs: Copy the offset when lowering logical pull constant sends

2016-06-01 Thread Jason Ekstrand
On Wed, Jun 1, 2016 at 3:58 PM, Francisco Jerez wrote: > Jason Ekstrand writes: > > > On Wed, Jun 1, 2016 at 3:33 PM, Francisco Jerez > > wrote: > > > >> Jason Ekstrand writes: > >> > >> > This fixes 64

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965/fs: Copy the offset when lowering logical pull constant sends

2016-06-01 Thread Francisco Jerez
Jason Ekstrand writes: > On Wed, Jun 1, 2016 at 3:33 PM, Francisco Jerez > wrote: > >> Jason Ekstrand writes: >> >> > This fixes 64 Vulkan CTS tests per gen >> > >> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96299

Re: [Mesa-dev] [PATCH v4 00/12] Rework CS local IDs for gen7+

2016-06-01 Thread Jason Ekstrand
I made a few cosmetic comments on patch 9 and I made a comment on patch 5 that might make a good future cleanup. However, I think it's good enough to land. Reviewed-by: Jason Ekstrand Don't forget to cc 12.0 --Jason On Wed, Jun 1, 2016 at 3:04 PM, Jordan Justen

Re: [Mesa-dev] [PATCH v4 09/12] i965: Support new local ID push constant & cross-thread constants

2016-06-01 Thread Jason Ekstrand
On Wed, Jun 1, 2016 at 3:04 PM, Jordan Justen wrote: > The cross thread constant support appears on Haswell. It allows us to > upload a set of uniform data for all threads without duplicating it > per thread. > > We also support per-thread data which allows us to store

Re: [Mesa-dev] [PATCH v4 07/12] i965: Store number of threads in brw_cs_prog_data

2016-06-01 Thread Jason Ekstrand
On Wed, Jun 1, 2016 at 3:04 PM, Jordan Justen wrote: > Signed-off-by: Jordan Justen > --- > src/intel/vulkan/anv_cmd_buffer.c | 7 +++ > src/intel/vulkan/anv_private.h| 1 - > src/intel/vulkan/gen7_cmd_buffer.c

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965/fs: Copy the offset when lowering logical pull constant sends

2016-06-01 Thread Jason Ekstrand
On Wed, Jun 1, 2016 at 3:33 PM, Francisco Jerez wrote: > Jason Ekstrand writes: > > > This fixes 64 Vulkan CTS tests per gen > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96299 > > Cc: "12.0" > >

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965/fs: Copy the offset when lowering logical pull constant sends

2016-06-01 Thread Francisco Jerez
Jason Ekstrand writes: > This fixes 64 Vulkan CTS tests per gen > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96299 > Cc: "12.0" > Cc: Francisco Jerez > Cc: Mark Janes > --- >

Re: [Mesa-dev] [PATCH v4 05/12] i965: Put CS local thread ID uniform in last push register

2016-06-01 Thread Jason Ekstrand
On Wed, Jun 1, 2016 at 3:04 PM, Jordan Justen wrote: > This thread ID uniform will be used to compute the > gl_LocalInvocationIndex and gl_LocalInvocationID values. > > It is important for this uniform to be added in the last push constant > register.

[Mesa-dev] [PATCH] i965/fs: Copy the offset when lowering logical pull constant sends

2016-06-01 Thread Jason Ekstrand
This fixes 64 Vulkan CTS tests per gen Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96299 Cc: "12.0" Cc: Francisco Jerez Cc: Mark Janes --- src/mesa/drivers/dri/i965/brw_fs.cpp | 8 1 file

[Mesa-dev] [PATCH v4 03/12] i965: Add nir channel_num system value

2016-06-01 Thread Jordan Justen
v2: * simd16/32 fixes (curro) Signed-off-by: Jordan Justen --- src/compiler/nir/nir_intrinsics.h| 1 + src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 15 +++ 2 files changed, 16 insertions(+) diff --git a/src/compiler/nir/nir_intrinsics.h

[Mesa-dev] [PATCH v4 08/12] i965: Add CS push constant info to brw_cs_prog_data

2016-06-01 Thread Jordan Justen
We need information about push constants in a few places for the GL driver, and another couple places for the vulkan driver. When we add support for uploading both a common (cross-thread) set of push constants, combined with the previous per-thread push constant data, things are going to get even

[Mesa-dev] [PATCH v4 04/12] i965: Add uniform for a CS thread local base ID

2016-06-01 Thread Jordan Justen
v4: * Force thread_local_id_index to -1 for now, and have fs_visitor::setup_cs_payload look at thread_local_id_index. This enables us to more easily cut over from the old local ID layout to the new layout, as suggested by Jason. Signed-off-by: Jordan Justen

[Mesa-dev] [PATCH v4 06/12] i965: Add nir based intrinsic lowering and thread ID uniform

2016-06-01 Thread Jordan Justen
We add a lowering pass for nir intrinsics. This pass can replace nir intrinsics with driver specific nir lower code. We lower the gl_LocalInvocationIndex intrinsic based on a uniform which is loaded with a thread specific ID. We also lower the gl_LocalInvocationID based on

[Mesa-dev] [PATCH v4 11/12] i965: Enable cross-thread constants and compact local IDs for hsw+

2016-06-01 Thread Jordan Justen
The cross thread constant support appears on Haswell. It allows us to upload a set of uniform data for all threads without duplicating it per thread. One complication is that cross-thread constants are loaded into registers before per-thread constants. Previously, our local IDs were loaded before

[Mesa-dev] [PATCH v4 07/12] i965: Store number of threads in brw_cs_prog_data

2016-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/intel/vulkan/anv_cmd_buffer.c | 7 +++ src/intel/vulkan/anv_private.h| 1 - src/intel/vulkan/gen7_cmd_buffer.c| 2 +- src/intel/vulkan/gen8_cmd_buffer.c| 2 +-

[Mesa-dev] [PATCH v4 10/12] anv: Support new local ID generation & cross-thread constants

2016-06-01 Thread Jordan Justen
The cross thread constant support appears on Haswell. It allows us to upload a set of uniform data for all threads without duplicating it per thread. We also support per-thread data which allows us to store a per-thread ID in one of the uniforms that can be used to calculate the

[Mesa-dev] [PATCH v4 05/12] i965: Put CS local thread ID uniform in last push register

2016-06-01 Thread Jordan Justen
This thread ID uniform will be used to compute the gl_LocalInvocationIndex and gl_LocalInvocationID values. It is important for this uniform to be added in the last push constant register. fs_visitor::assign_constant_locations is updated to make sure this happens. The reason this is important is

[Mesa-dev] [PATCH v4 09/12] i965: Support new local ID push constant & cross-thread constants

2016-06-01 Thread Jordan Justen
The cross thread constant support appears on Haswell. It allows us to upload a set of uniform data for all threads without duplicating it per thread. We also support per-thread data which allows us to store a per-thread ID in one of the uniforms that can be used to calculate the

[Mesa-dev] [PATCH v4 12/12] i965: Remove old CS local ID handling

2016-06-01 Thread Jordan Justen
The old method pushed data for each channels uvec3 data of gl_LocalInvocationID. The new method pushes 1 dword of data that is a 'thread local ID' value. Based on that value, we can generate gl_LocalInvocationIndex and gl_LocalInvocationID with some calculations. Signed-off-by: Jordan Justen

[Mesa-dev] [PATCH v4 02/12] nir: Make lowering gl_LocalInvocationIndex optional

2016-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- src/compiler/nir/nir.c | 4 src/compiler/nir/nir.h | 2 ++ src/compiler/nir/nir_gather_info.c | 1 + src/compiler/nir/nir_intrinsics.h | 1 +

[Mesa-dev] [PATCH v4 00/12] Rework CS local IDs for gen7+

2016-06-01 Thread Jordan Justen
git://people.freedesktop.org/~jljusten/mesa hsw-cs-cross-thread-constants-v4 v4: * Support both the old and new layouts until the switch-over to the new layout. This minimizes the size of the switch over patch. (Jason) v3: *

[Mesa-dev] [PATCH v4 01/12] glsl: Add glsl LowerCsDerivedVariables option

2016-06-01 Thread Jordan Justen
v2: * Move lower flag to context constants. (Ken) Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke (v1) --- src/compiler/glsl/builtin_variables.cpp | 29 ++--- src/compiler/glsl/glsl_parser_extras.cpp | 2 +-

Re: [Mesa-dev] [PATCH 3/5] mesa: Fix add_index_to_name logic

2016-06-01 Thread Ian Romanick
On 05/31/2016 04:45 PM, Ian Romanick wrote: > On 05/31/2016 02:44 PM, Timothy Arceri wrote: >> On Tue, 2016-05-31 at 11:52 -0700, Ian Romanick wrote: >>> From: Ian Romanick >>> >>> Our piglit tests for geometry and tessellation shader inputs were >>> incorrect. Array

[Mesa-dev] [PATCH 7/9] anv/pipeline: Silently pass tests if depth or stencil is missing

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Ian Romanick --- src/intel/vulkan/gen7_pipeline.c | 12 ++-- src/intel/vulkan/gen8_pipeline.c | 12 ++-- src/intel/vulkan/genX_pipeline_util.h |

[Mesa-dev] [PATCH 8/9] nir/spirv: Use breaks instead of returns in constant handling

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Ian Romanick --- src/compiler/spirv/spirv_to_nir.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir.c

[Mesa-dev] [PATCH 2/9] nir/lower_indirect_derefs: Use the direct array deref for recursion

2016-06-01 Thread Jason Ekstrand
This fixes about 100 of the new Vulkan CTS tests. Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Connor Abbott Cc: Ian Romanick Cc: Kenneth Graunke ---

[Mesa-dev] [PATCH 0/9] anv: Fix several of the new Vulkan CTS tests

2016-06-01 Thread Jason Ekstrand
I recently grabbed the latest dev version of the Vulkan CTS and ran it on our driver. This series fixes a bunch of the bugs that it exposed. In an effort to get more people involved in Vulkan development and in the hopes of actually getting reviews, I've CC'd at least one person on each patch.

[Mesa-dev] [PATCH 3/9] anv/pipeline: Refactor specialization constant handling a bit

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Jordan Justen --- src/intel/vulkan/anv_pipeline.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline.c

[Mesa-dev] [PATCH 6/9] anv/pipeline: Unify gen7/8 emit_ds_state

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Jordan Justen --- src/intel/vulkan/gen7_pipeline.c | 37 +- src/intel/vulkan/gen8_pipeline.c | 49 -

[Mesa-dev] [PATCH 9/9] nir/spirv: Handle the WorkgroupSize builtin decoration

2016-06-01 Thread Jason Ekstrand
This fixes the 7 dEQP-VK.pipeline.spec_constant.compute.local_size.* tests in the latest dev version of the Vulkan CTS. Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Ian Romanick ---

[Mesa-dev] [PATCH 5/9] genxml/gen6,7,75: s/BackFace/Backface

2016-06-01 Thread Jason Ekstrand
This is more consistent with gen8+ Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Jordan Justen --- src/intel/genxml/gen6.xml | 4 ++-- src/intel/genxml/gen7.xml | 4 ++-- src/intel/genxml/gen75.xml

[Mesa-dev] [PATCH 4/9] anv/pipeline: Add support for early depth stencil

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Jordan Justen --- src/intel/vulkan/gen7_pipeline.c | 8 +++- src/intel/vulkan/gen8_pipeline.c | 7 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 1/9] anv/clear: Handle ClearImage on 3-D images

2016-06-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Cc: "12.0" Cc: Nanley Chery --- src/intel/vulkan/anv_meta_clear.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_meta_clear.c

Re: [Mesa-dev] [PATCH 00/10] R600: Cache flush fixes and cleanup v2

2016-06-01 Thread Alex Deucher
On Wed, Jun 1, 2016 at 2:57 PM, Marek Olšák wrote: > Hi, > > This is version 2 of the previous series. This time it's been tested!! > > Tested cards: > - RV670 > - RV730 > - EG/REDWOOD > - CAYMAN > > This patch series: > - fixes several bugs around making 3D and CP DMA idle with

Re: [Mesa-dev] [PATCH 4/5] mesa/glformats: add desktop gl checks on _mesa_base_tex_format

2016-06-01 Thread Ian Romanick
On 05/13/2016 07:57 AM, Alejandro Piñeiro wrote: > There are several internalformat that are not supported on gl es, so > it should return -1 if that is the case. This is needed in order to > get ARB_internalformat_query2 implementation deciding correctly if > a resource is supported or not on

Re: [Mesa-dev] [PATCH 3/5] mesa/formatquery: expand NUM_SAMPLE_COUNTS OpenGL ES comment

2016-06-01 Thread Ian Romanick
On 05/13/2016 07:57 AM, Alejandro Piñeiro wrote: > For ES 3.0 NUM_SAMPLE_COUNTS spec points that some formats will be > always zero. But on ES 3.1 can be different to zero. > > The current code is correctly checking exactly against version 3.0, > but the comment only mentions 3.0 spec. It is

Re: [Mesa-dev] [PATCH 2/5] mesa/formatquery: add a comment to clarify INTERNALFORMAT_PREFERRED

2016-06-01 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 05/13/2016 07:57 AM, Alejandro Piñeiro wrote: > The comment clarifies that the driver is called only to try to get > a preferred internalformat, and that it was already checked if the > format is supported or not. > >

Re: [Mesa-dev] [PATCH 1/5] i965/formatquery: remove INTERNALFORMAT_PREFERRED implementation

2016-06-01 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 05/13/2016 07:57 AM, Alejandro Piñeiro wrote: > Right now the implementation only checks if the internalformat is > supported or not. But that implementation is wrong, returning > unsupported for some internalformats.

[Mesa-dev] [PATCH v11] mesa: Add MESA_SHADER_CAPTURE_PATH for writing .shader_test files.

2016-06-01 Thread Kenneth Graunke
This writes linked shader programs to .shader_test files to $MESA_SHADER_CAPTURE_PATH in the format used by shader-db (http://cgit.freedesktop.org/mesa/shader-db). It supports both GLSL shaders and ARB programs. All stages that are linked together are written in a single .shader_test file. This

Re: [Mesa-dev] [PATCH] egl: Account for default values of texture target and format

2016-06-01 Thread Anuj Phogat
On Wed, Jun 1, 2016 at 9:31 AM, Plamena Manolova wrote: > > When validating attributes during surface creation we should account > for the default values of texture target and format (EGL_NO_TEXTURE) > since the user is not obligated to explicitly set both via the >

[Mesa-dev] [PATCH 09/10] r600g: don't flush caches when binding shader resources

2016-06-01 Thread Marek Olšák
From: Marek Olšák Reviewed-by: Alex Deucher --- src/gallium/drivers/r600/evergreen_state.c | 25 +++-- src/gallium/drivers/r600/r600_hw_context.c | 4 src/gallium/drivers/r600/r600_state.c| 25

[Mesa-dev] [PATCH 05/10] r600g: fix CP DMA hazard with index buffer fetches (v3)

2016-06-01 Thread Marek Olšák
From: Marek Olšák v3: use PFP_SYNC_ME on EG-CM only when supported by the kernel, otherwise use MEM_WRITE + WAIT_REG_MEM to emulate that --- src/gallium/drivers/r600/evergreen_hw_context.c | 16 -- src/gallium/drivers/r600/evergreend.h | 1 +

Re: [Mesa-dev] [PATCH 0/5] ARB_internalformat_query2 support for OpenGL ES and other fixes

2016-06-01 Thread Ian Romanick
On 06/01/2016 11:35 AM, Alejandro Piñeiro wrote: > On 13/05/16 23:20, Alejandro Piñeiro wrote: >> >> On 13/05/16 17:06, Ilia Mirkin wrote: >>> On Fri, May 13, 2016 at 10:57 AM, Alejandro Piñeiro >>> wrote: Earlier this year the support for ARB_internalformat_query2 has

[Mesa-dev] [PATCH 07/10] r600g: only do necessary cache flushes in cp_dma_clear_buffer

2016-06-01 Thread Marek Olšák
From: Marek Olšák The main impact is that fast color clear doesn't flush TC, CONST, DB. Reviewed-by: Alex Deucher --- src/gallium/drivers/r600/evergreen_hw_context.c | 15 +-- src/gallium/drivers/r600/r600_pipe.h| 17

[Mesa-dev] [PATCH 10/10] gallium/radeon: don't use the DMA ring for pipelined buffer uploads

2016-06-01 Thread Marek Olšák
From: Marek Olšák Submitting a DMA IB flushes the GFX IB and all GPU caches. Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/r600_buffer_common.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[Mesa-dev] [PATCH 06/10] r600g: remove a CP DMA workaround that's not needed anymore

2016-06-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/r600/r600_blit.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 76c3364..c9d7823 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++

[Mesa-dev] [PATCH 03/10] r600g: write WAIT_UNTIL in the correct place

2016-06-01 Thread Marek Olšák
From: Marek Olšák This has been wrong all along. Fixing this will allow removing useless cache flushes. Cc: 11.1 11.2 12.0 --- src/gallium/drivers/r600/r600_hw_context.c | 19 +++ 1 file changed, 11 insertions(+), 8

[Mesa-dev] [PATCH 01/10] gallium/u_suballoc: allow different alignment for each allocation

2016-06-01 Thread Marek Olšák
From: Marek Olšák Just move the alignment parameter from u_suballocator_create to u_suballocator_alloc. --- src/gallium/auxiliary/util/u_suballoc.c | 22 ++ src/gallium/auxiliary/util/u_suballoc.h | 6 +++---

[Mesa-dev] [PATCH 08/10] r600g: only do necessary cache flushes in cp_dma_copy_buffer

2016-06-01 Thread Marek Olšák
From: Marek Olšák The main impact is that {upload, draw, upload, draw, ..} doesn't flush framebuffer caches before every upload. Reviewed-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c | 15 +-- 1 file changed, 1

[Mesa-dev] [PATCH 04/10] r600g: properly sync CP with CP DMA on R6xx

2016-06-01 Thread Marek Olšák
From: Marek Olšák This will allow removing useless cache & IB flushes. --- src/gallium/drivers/r600/r600_hw_context.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c

[Mesa-dev] [PATCH 02/10] gallium/radeon: rename allocator_so_filled_size -> allocator_zeroed_memory

2016-06-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 8 src/gallium/drivers/radeon/r600_pipe_common.h | 2 +- src/gallium/drivers/radeon/r600_streamout.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git

[Mesa-dev] [PATCH 00/10] R600: Cache flush fixes and cleanup v2

2016-06-01 Thread Marek Olšák
Hi, This is version 2 of the previous series. This time it's been tested!! Tested cards: - RV670 - RV730 - EG/REDWOOD - CAYMAN This patch series: - fixes several bugs around making 3D and CP DMA idle with respect to CP.PFP, which allows removing a lot of cache flushes (= hacks really) and IB

Re: [Mesa-dev] [PATCH] i965/eu: use simd8 when exec_size != EXECUTE_16

2016-06-01 Thread Francisco Jerez
Alejandro Piñeiro writes: > Among other thigs, fix a gpu hang when using INTEL_DEBUG=shader_time > for any shader. > > Signed-off-by: Jason Ekstrand > Signed-off-by: Alejandro Piñeiro > --- > > This is the change suggested by

Re: [Mesa-dev] Discussion: C++11 std::future in Mesa

2016-06-01 Thread Matt Turner
On Wed, Jun 1, 2016 at 8:51 AM, ⚛ <0xe2.0x9a.0...@gmail.com> wrote: > On Wed, Jun 1, 2016 at 3:50 PM, Erik Faye-Lund wrote: >> On Wed, Jun 1, 2016 at 3:02 PM, ⚛ <0xe2.0x9a.0...@gmail.com> wrote: >>> On Wed, Jun 1, 2016 at 2:19 PM, Marek Olšák wrote:

Re: [Mesa-dev] [PATCH 0/5] ARB_internalformat_query2 support for OpenGL ES and other fixes

2016-06-01 Thread Alejandro Piñeiro
On 13/05/16 23:20, Alejandro Piñeiro wrote: > > On 13/05/16 17:06, Ilia Mirkin wrote: >> On Fri, May 13, 2016 at 10:57 AM, Alejandro Piñeiro >> wrote: >>> Earlier this year the support for ARB_internalformat_query2 has landed >>> [1][2], initially only for desktop GL. >>>

Re: [Mesa-dev] Discussion: C++11 std::future in Mesa

2016-06-01 Thread Marek Olšák
On Wed, Jun 1, 2016 at 7:40 PM, Patrick Baggett wrote: >> >> >> No. Shader compilation can only be asynchronous if it's far enough >> from a draw call and the app doesn't query its status. If it's next to >> a draw call, multithreading is useless. Completely useless. >>

Re: [Mesa-dev] [PATCH] automake: avoid fetching unnecessary data for the generation of git_sha1.h

2016-06-01 Thread Tobias Klausmann
On 01.06.2016 19:31, Eric Engestrom wrote: On Wed, Jun 01, 2016 at 12:18:57AM +0200, Tobias Klausmann wrote: Signed-off-by: Tobias Klausmann --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am

Re: [Mesa-dev] [PATCH 3/4] mesa: Allow relax various desktop-only checks for cube arrays

2016-06-01 Thread Ian Romanick
On 05/31/2016 07:39 AM, Ilia Mirkin wrote: > This has the unfortunate side-effect of opening up cube map arrays to > ES 3.0 implementations where the backend driver also supports texture > cubemaps for desktop GL (I'm thinking the DX10.1 GT21x's for example). > Perhaps we don't care? Otherwise it

Re: [Mesa-dev] Discussion: C++11 std::future in Mesa

2016-06-01 Thread Patrick Baggett
> > > No. Shader compilation can only be asynchronous if it's far enough > from a draw call and the app doesn't query its status. If it's next to > a draw call, multithreading is useless. Completely useless. > I don't know a lot about the shader compilation/linking process, so I'm just asking

Re: [Mesa-dev] [PATCH] automake: avoid fetching unnecessary data for the generation of git_sha1.h

2016-06-01 Thread Eric Engestrom
On Wed, Jun 01, 2016 at 12:18:57AM +0200, Tobias Klausmann wrote: > Signed-off-by: Tobias Klausmann > --- > src/Makefile.am | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/Makefile.am b/src/Makefile.am > index

Re: [Mesa-dev] [PATCH] st/dri: fix winsys handle stride calculation for block formats

2016-06-01 Thread Emil Velikov
[+RobH since he's interested in plumbing similar/same formats into GBM] Hi Philipp, On 26 May 2016 at 13:00, Philipp Zabel wrote: > Am Donnerstag, den 26.05.2016, 12:43 +0100 schrieb Emil Velikov: >> Hi gents, >> >> On 26 May 2016 at 11:28, Philipp Zabel

Re: [Mesa-dev] [PATCH v2] tgsi/scan: add uses_derivatives (v2)

2016-06-01 Thread Roland Scheidegger
Reviewed-by: Roland Scheidegger Am 01.06.2016 um 17:32 schrieb Nicolai Hähnle: > From: Nicolai Hähnle > > v2: > - TG4 does not calculate derivatives (Ilia) > - also handle SAMPLE* instructions (Roland) > > Cc: 12.0

Re: [Mesa-dev] [android-x86-devel] [PATCH 3/3] isl: add support for Android libmesa_isl static library

2016-06-01 Thread Mauro Rossi
> >>> > MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk > >>> > MESA_PYTHON2 := python > >>> > +MESA_PYTHON3 := python3 > >> > >> I've just seen that while a few days ago python3 was necessary to build > >> gen%_pack.h headers, > >> now the .py scripts just require python2, so this MESA_PYTHON3

[Mesa-dev] Parallel shader compilation (was Re: Discussion: C++11 std::future in Mesa)

2016-06-01 Thread Ian Romanick
On 06/01/2016 05:19 AM, Marek Olšák wrote: > On Fri, May 27, 2016 at 8:49 PM, ⚛ <0xe2.0x9a.0...@gmail.com> wrote: >> Hello. >> >> http://en.cppreference.com/w/cpp/thread/future >> http://en.cppreference.com/w/cpp/thread/async >> >> Assumption: Shader compilation will need run on separate

Re: [Mesa-dev] Discussion: C++11 std::future in Mesa

2016-06-01 Thread Marek Olšák
On Wed, Jun 1, 2016 at 6:06 PM, ⚛ <0xe2.0x9a.0...@gmail.com> wrote: > On Wed, Jun 1, 2016 at 3:53 PM, Marek Olšák wrote: >> Because of external factors you can't predict, your driver suddenly >> receives a bunch of shaders that take 2000 ms to compile right before >> a draw

Re: [Mesa-dev] Discussion: C++11 std::future in Mesa

2016-06-01 Thread Emil Velikov
On 1 June 2016 at 17:34, ⚛ <0xe2.0x9a.0...@gmail.com> wrote: > On Wed, Jun 1, 2016 at 4:06 PM, Brian Paul wrote: >> I think the issue here is someone comes along with no history in the project >> and asserts that he has a great solution for a problem > > Asynchronous

Re: [Mesa-dev] [android-x86-devel] [PATCH 3/3] isl: add support for Android libmesa_isl static library

2016-06-01 Thread Emil Velikov
On 1 June 2016 at 01:25, Mauro Rossi wrote: > 2016-06-01 2:22 GMT+02:00 Mauro Rossi : >> 2016-05-31 16:33 GMT+02:00 Emil Velikov : >>> >>> Hi Mauro, >>> >>> A couple of questions, nothing serious imho. >>> >>> On 30 May 2016

[Mesa-dev] [PATCH] i965/eu: use simd8 when exec_size != EXECUTE_16

2016-06-01 Thread Alejandro Piñeiro
Among other thigs, fix a gpu hang when using INTEL_DEBUG=shader_time for any shader. Signed-off-by: Jason Ekstrand Signed-off-by: Alejandro Piñeiro --- This is the change suggested by Jason (so I added him as signed-off). I just run a full piglit run

Re: [Mesa-dev] [PATCH] mesa: Enable LTO compilation

2016-06-01 Thread Chuck Atkins
> > > With gcc 5.3.1 I end up with lib{GL,OSMesa}.so @ 44M and > > libswrAVX{,2}.so @ 70M. With flto turned on it drops WAY down to > > lib{GL,OSMesa}.so @ 13M and libswrAVX{,2}.so @ 18M > > I assume those numbers are including debugging symbols? How do stripped > binaries compare? > Silly me, I

  1   2   3   >