[Mesa-dev] [PATCH v2 17/18] mesa: Replace gl_extensions::EXT_texture3D with ::dummy_true

2015-10-30 Thread Nanley Chery
From: Nanley Chery Mesa unconditionally sets this driver flag to true in _mesa_init_extensions(). There is therefore no need for the driver to communicate support for this extension. Replace the driver capability flag with ::dummy_true. Signed-off-by: Nanley Chery Reviewed-by: Chad Versace

[Mesa-dev] [PATCH v2 10/18] mesa: In helpers, only check driver capability for meta

2015-10-30 Thread Nanley Chery
From: Nanley Chery Make API context and version checks done by the helper functions pass unconditionally while meta is in progress. This transparently makes extension checks solely dependent on struct gl_extensions while in meta. v2. Use 8-bit wide datatype instead GLuint. Signed-off-by

[Mesa-dev] [PATCH v2 09/18] mesa/extensions: Prefix global struct and extension type

2015-10-30 Thread Nanley Chery
From: Nanley Chery Rename the following types and variables: * struct extension -> struct mesa_extension, like the mesa_format type. * extension_table -> _mesa_extension_table, like the _mesa_extension_override_{enables,disables} structs. Suggested-by: Marek Olšák Suggested-by

[Mesa-dev] [PATCH v2 15/18] mesa: Fix ARB_texture_compression_bptc functionality leaks

2015-10-30 Thread Nanley Chery
From: Nanley Chery Stop leaks into GLES contexts in _mesa_target_can_be_compressed(). v2. Remove OpenGL 3.1 requirement (Marek, Chad) Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 3 +-- src/mesa/main/teximage.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[Mesa-dev] [PATCH v2 18/18] mesa: Remove gl_extensions::dummy

2015-10-30 Thread Nanley Chery
From: Nanley Chery This variable existed to enable 0 as a valid error value for name_to_offset(). Since o(extension_sentinel) is also a valid error value, save space and replace this mysterious variable with a less mysterious one (extension_sentinel). v2. Reword git comment and update function

[Mesa-dev] [PATCH v2 11/18] mesa: Use _mesa_has_3DFX_texture_compression_FXT1()

2015-10-30 Thread Nanley Chery
From: Nanley Chery Replace the open-coded check for extension support with the helper function that determines this support. v2. Don't check for pre-1.2 desktop GL contexts Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 3 +-- src/mesa/main/texcompress.c | 3 +-- 2

[Mesa-dev] [PATCH v2 12/18] mesa: Fix EXT_texture_compression_s3tc functionality leaks

2015-10-30 Thread Nanley Chery
From: Nanley Chery Stop leaks into GLES 1 contexts in _mesa_get_compressed_formats() and lookup_view_class(). The extension spec lists GLES 2.0.25 and 3.0.2 dependencies, so update the extension table accordingly. v2. Remove references to pre-1.2 desktop GL contexts Signed-off-by: Nanley

[Mesa-dev] [PATCH v2 08/18] mesa: Generate a helper function for each extension

2015-10-30 Thread Nanley Chery
From: Nanley Chery Generate functions which determine if an extension is supported in the current context. Initially, enums were going to be explicitly used with _mesa_extension_supported(). The idea to embed the function and enums into generated helper functions was suggested by Kristian

[Mesa-dev] [PATCH v2 16/18] mesa/extensions: Remove extra memsets on gl_extensions

2015-10-30 Thread Nanley Chery
From: Nanley Chery All gl_extensions structs are zero-initialized by default. There is therefore no need to memset the structs to 0. Also, remove the open-coded memset in _mesa_init_extensions(). v2. Drop the hunk that zero-initializes the global structs (Marek) Signed-off-by: Nanley Chery

[Mesa-dev] [PATCH v2 14/18] mesa: Fix EXT_texture_sRGB functionality leaks

2015-10-30 Thread Nanley Chery
From: Nanley Chery Stop leaks into GLES contexts in _mesa_base_tex_format() and lookup_view_class(). Stop allowing compressed sRGB formats as valid formats in GLES3 contexts. These formats are only exposed to contexts advertising EXT_texture_sRGB. v2. Remove references to pre-1.2 desktop GL

Re: [Mesa-dev] [PATCH v2 01/18] mesa/extensions: Remove array sentinel

2015-11-11 Thread Nanley Chery
On Wed, Nov 11, 2015 at 2:07 PM, Chad Versace wrote: > On Fri 30 Oct 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > Simplify future updates to the extension struct array by removing > > the sentinel. > > > > Signed-off-by: Nanley Chery >

Re: [Mesa-dev] [PATCH v2 10/18] mesa: In helpers, only check driver capability for meta

2015-11-12 Thread Nanley Chery
On Wed, Nov 11, 2015 at 3:00 PM, Chad Versace wrote: > On Fri 30 Oct 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > Make API context and version checks done by the helper functions pass > > unconditionally while meta is in progress. This transparently makes

[Mesa-dev] [PATCH] mesa/extensions: Define the size of the extension array

2015-11-12 Thread Nanley Chery
From: Nanley Chery Hopefully fixes the MSVC build error reported by Roland. Signed-off-by: Nanley Chery --- I'm not sure why the array size being unknown is an issue. Please let me know if this fixes the build issue. src/mesa/main/extensions.c | 2 +- src/mesa/main/extensions.h

Re: [Mesa-dev] [PATCH] mesa/extensions: Define the size of the extension array

2015-11-12 Thread Nanley Chery
On Thu, Nov 12, 2015 at 3:17 PM, Brian Paul wrote: > On 11/12/2015 04:03 PM, Nanley Chery wrote: > >> From: Nanley Chery >> >> Hopefully fixes the MSVC build error reported by Roland. >> >> Signed-off-by: Nanley Chery >> --- >> >> I&#

[Mesa-dev] [PATCH] anv/cmd_buffer: Use the proper depth input attachment surface state

2017-01-30 Thread Nanley Chery
location. Cc: "17.0" Cc: Iago Toral Cc: Jason Ekstrand Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index

[Mesa-dev] [PATCH] anv/pass: Store the depth-stencil attachment's last subpass index

2017-02-01 Thread Nanley Chery
Commit 968ffd6c868af7226e8f889573eef709888151cb stored the last subpass index of all the attachments but that of the depth-stencil attachment. This could cause depth buffers used in multiple subpasses not to be in the requested final layout. Fix this error. Cc: "17.0" Signed-off-by: Na

[Mesa-dev] [PATCH v2 1/2] anv/cmd_buffer: Don't temporarily enable CCS_E within a render pass

2017-02-02 Thread Nanley Chery
: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 63911f2c8e..cba876b58e 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src

[Mesa-dev] [PATCH v2 2/2] anv/blorp: Disable resolves for transparent black clears

2017-02-02 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_blorp.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 2cf972bb61..759d2ae944 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan

Re: [Mesa-dev] [PATCH 1/5] intel/isl: Rename supports_lossless_compression to supports_ccs_e

2017-02-02 Thread Nanley Chery
ng; > in ISL and is only used to refer to single-sample color compression. > It's also much shorter which is nice. This patch is, Reviewed-by: Nanley Chery > --- > src/intel/isl/isl.h | 4 ++-- > src/intel/isl/isl_format.c | 8 +

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

2017-02-02 Thread Nanley Chery
On Wed, Feb 01, 2017 at 10:11:42PM -0800, Jason Ekstrand wrote: > This improves the performance of Dota 2 on my Sky Lake Skull Canyon > machine by about 2-3%. > --- > src/intel/vulkan/anv_private.h | 1 + > src/intel/vulkan/gen8_cmd_buffer.c | 155 > - >

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

2017-02-02 Thread Nanley Chery
On Wed, Feb 01, 2017 at 05:43:53PM -0800, 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 dropped > the frame

Re: [Mesa-dev] [PATCH] isl: Add assertions for render target swizzle restrictions

2017-02-02 Thread Nanley Chery
On Tue, Jan 31, 2017 at 06:51:12PM -0800, Jason Ekstrand wrote: > --- > src/intel/isl/isl_surface_state.c | 32 > 1 file changed, 32 insertions(+) > > diff --git a/src/intel/isl/isl_surface_state.c > b/src/intel/isl/isl_surface_state.c > index b735478..c7b220b 10

Re: [Mesa-dev] [PATCH] isl: Add assertions for render target swizzle restrictions

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 12:28:02PM -0800, Jason Ekstrand wrote: > On Thu, Feb 2, 2017 at 11:09 AM, Nanley Chery wrote: > > > On Tue, Jan 31, 2017 at 06:51:12PM -0800, Jason Ekstrand wrote: > > > --- > > > src/intel/isl/isl_surface_state.c | 32

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

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 12:53:33PM -0800, Jason Ekstrand wrote: > On Thu, Feb 2, 2017 at 10:55 AM, Nanley Chery wrote: > > > On Wed, Feb 01, 2017 at 10:11:42PM -0800, Jason Ekstrand wrote: > > > This improves the performance of Dota 2 on my Sky Lake Skull Canyon >

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

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 01:37:56PM -0800, Nanley Chery wrote: > On Thu, Feb 02, 2017 at 12:53:33PM -0800, Jason Ekstrand wrote: > > On Thu, Feb 2, 2017 at 10:55 AM, Nanley Chery wrote: > > > > > On Wed, Feb 01, 2017 at 10:11:42PM -0800, Jason Ekstrand wrote: > > >

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

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 01:55:30PM -0800, Jason Ekstrand wrote: > On Thu, Feb 2, 2017 at 1:45 PM, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 01:37:56PM -0800, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 12:53:33PM -0800, Jason Ekstrand wrote: > > > >

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

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 03:10:21PM -0800, Jason Ekstrand wrote: > On Thu, Feb 2, 2017 at 3:01 PM, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 01:55:30PM -0800, Jason Ekstrand wrote: > > > On Thu, Feb 2, 2017 at 1:45 PM, Nanley Chery > > wrote: > > > &

Re: [Mesa-dev] [PATCH v2 2/2] anv/blorp: Disable resolves for transparent black clears

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 08:15:30AM -0800, Nanley Chery wrote: Polite ping. > Signed-off-by: Nanley Chery > --- > src/intel/vulkan/anv_blorp.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/a

Re: [Mesa-dev] [PATCH v2 1/2] anv/cmd_buffer: Don't temporarily enable CCS_E within a render pass

2017-02-02 Thread Nanley Chery
On Thu, Feb 02, 2017 at 01:38:45PM -0800, Jason Ekstrand wrote: > Perf numbers in the commit message would be nice > How's the following? Reclaims about 1.95% FPS for Dota 2 on some configurations. > Reviewed-by: Jason Ekstrand Thanks! > > On Thu, Feb 2, 2017 at 8

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

2017-02-03 Thread Nanley Chery
On Fri, Feb 03, 2017 at 12:27:18PM -0800, Jason Ekstrand wrote: > On Thu, Feb 2, 2017 at 1:45 PM, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 01:37:56PM -0800, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 12:53:33PM -0800, Jason Ekstrand wrote: > > > >

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

2017-02-07 Thread Nanley Chery
On Wed, Feb 01, 2017 at 08:07:22PM -0800, Jason Ekstrand wrote: > The only mechanism Vulkan provides for disabling stencil writes is to set This isn't the only mechanism for explicitly disabling stencil writes. Stencil writes can also be disabled by disabling stencil testing (as can be seen in thi

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

2017-02-07 Thread Nanley Chery
On Tue, Feb 07, 2017 at 12:25:18PM -0800, Jason Ekstrand wrote: > On Tue, Feb 7, 2017 at 12:13 PM, Nanley Chery wrote: > > > On Wed, Feb 01, 2017 at 08:07:22PM -0800, Jason Ekstrand wrote: > > > The only mechanism Vulkan provides for disabling stencil writes is to set > &

Re: [Mesa-dev] [PATCH 1/2] anv: allow blue in alpha component in swizzle for render

2017-02-08 Thread Nanley Chery
On Wed, Feb 08, 2017 at 01:31:54PM +0100, Juan A. Suarez Romero wrote: > In pre-Broadwell devices, as B4G4R4A4 is not supported natively, we > workaround it by using a format with a more complex swizzle, that uses > blue in alpha component. > > Signed-off-by: Juan A. Suarez Romero > --- > src/in

Re: [Mesa-dev] [PATCH 2/2] isl: apply RENDER_SURFACE_STATE::Shader Channel assertions to gen>=8

2017-02-08 Thread Nanley Chery
-by: Juan A. Suarez Romero > --- > src/intel/isl/isl_surface_state.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) This patch is, Reviewed-by: Nanley Chery > > diff --git a/src/intel/isl/isl_surface_state.c > b/src/intel/isl/isl_surface_state.c > inde

Re: [Mesa-dev] [PATCH 1/2] anv: allow blue in alpha component in swizzle for render

2017-02-08 Thread Nanley Chery
On Wed, Feb 08, 2017 at 06:42:44PM +0100, Juan A. Suarez Romero wrote: > On Wed, 2017-02-08 at 09:27 -0800, Nanley Chery wrote: > > On Wed, Feb 08, 2017 at 01:31:54PM +0100, Juan A. Suarez Romero wrote: > > > In pre-Broadwell devices, as B4G4R4A4 is not supported natively, we &

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

2017-02-08 Thread Nanley Chery
flect the new performance data? You could alternatively omit the current data if you'd prefer. With that change, this patch is Reviewed-by: Nanley Chery > --Jason > > > > --Jason > > > > > > On Tue, Feb 7, 2017 at 2:28 PM, Nanley Chery > > wrote: >

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

2017-02-08 Thread Nanley Chery
On Thu, Feb 02, 2017 at 01:26:05PM -0800, 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 dropped > the frame

Re: [Mesa-dev] [PATCH 1/2] anv: allow blue in alpha component in swizzle for render

2017-02-09 Thread Nanley Chery
On Thu, Feb 09, 2017 at 09:41:11AM +0100, Juan A. Suarez Romero wrote: > On Wed, 2017-02-08 at 10:53 -0800, Nanley Chery wrote: > > On Wed, Feb 08, 2017 at 06:42:44PM +0100, Juan A. Suarez Romero wrote: > > > On Wed, 2017-02-08 at 09:27 -0800, Nanley Chery wrote: > > > &

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

2017-02-09 Thread Nanley Chery
On Wed, Feb 08, 2017 at 06:27:52PM -0800, Jason Ekstrand wrote: > On Wed, Feb 8, 2017 at 5:34 PM, Nanley Chery wrote: > > > On Thu, Feb 02, 2017 at 01:26:05PM -0800, Jason Ekstrand wrote: > > > In order to get good performance numbers for this, I had to hack up the

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

2017-02-09 Thread Nanley Chery
On Wed, Feb 08, 2017 at 09:38:52PM -0800, Jason Ekstrand wrote: > On Wed, Feb 8, 2017 at 8:11 PM, Jason Ekstrand wrote: > > > On Wed, Feb 8, 2017 at 6:27 PM, Jason Ekstrand > > wrote: > > > >> On Wed, Feb 8, 2017 at 5:34 PM, Nanley Chery > >> wrote

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

2017-02-09 Thread Nanley Chery
On Wed, Feb 01, 2017 at 05:43:54PM -0800, Jason Ekstrand wrote: > --- > src/intel/vulkan/genX_pipeline.c | 34 ++ > 1 file changed, 18 insertions(+), 16 deletions(-) This patch is Reviewed-by: Nanley Chery > > diff --git a/src/intel/vulkan/genX_

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

2017-02-09 Thread Nanley Chery
On Wed, Feb 01, 2017 at 05:43:55PM -0800, Jason Ekstrand wrote: > This seemed to help Dota 2 by a percent or two. I wasn't able to reproduce this on SKL, could you qualify this with "on BDW"? > --- > src/intel/vulkan/genX_pipeline.c | 133 > +-- > 1 file chan

Re: [Mesa-dev] [PATCH 2/2] anv/blorp: Disable partial resolves for transparent black clears

2017-02-09 Thread Nanley Chery
On Fri, Feb 10, 2017 at 12:44:02AM +, Emil Velikov wrote: > On 24 January 2017 at 00:55, Nanley Chery wrote: > > Cc: "13.0 17.0" > Nanley please take a look at the nominations page [1] and especially > at the note in the end ;-) > That said, I've picked th

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

2017-02-09 Thread Nanley Chery
On Thu, Feb 09, 2017 at 11:38:31AM -0800, Jason Ekstrand wrote: > On Thu, Feb 9, 2017 at 10:33 AM, Nanley Chery wrote: > > > On Wed, Feb 08, 2017 at 06:27:52PM -0800, Jason Ekstrand wrote: > > > On Wed, Feb 8, 2017 at 5:34 PM, Nanley Chery > > wrote: > > > &

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 10:59:38AM -0800, Jason Ekstrand wrote: > On Thu, Feb 9, 2017 at 5:32 PM, Nanley Chery wrote: > > > On Wed, Feb 01, 2017 at 05:43:55PM -0800, Jason Ekstrand wrote: > > > This seemed to help Dota 2 by a percent or two. > > > > I wasn'

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

2017-02-10 Thread Nanley Chery
/genX_pipeline.c | 42 > 9 files changed, 221 insertions(+), 2 deletions(-) This patch is, Reviewed-by: Nanley Chery > > diff --git a/src/intel/vulkan/TODO b/src/intel/vulkan/TODO > index 38acc0d..f8b73a1 100644 > --- a/src/intel/vulkan/TODO > +++ b/src/intel/vu

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 10:59:38AM -0800, Jason Ekstrand wrote: > On Thu, Feb 9, 2017 at 5:32 PM, Nanley Chery wrote: > > > On Wed, Feb 01, 2017 at 05:43:55PM -0800, Jason Ekstrand wrote: > > > This seemed to help Dota 2 by a percent or two. > > > > I wasn'

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

2017-02-10 Thread Nanley Chery
On Thu, Feb 09, 2017 at 05:32:55PM -0800, Nanley Chery wrote: > On Wed, Feb 01, 2017 at 05:43:55PM -0800, Jason Ekstrand wrote: > > This seemed to help Dota 2 by a percent or two. > > I wasn't able to reproduce this on SKL, could you qualify this with "on > BDW"?

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 11:02:19AM -0800, Jason Ekstrand wrote: > It's a bit hard to measure because it almost gets lost in the noise, > but this seemed to help Dota 2 by a percent or two on my Broadwell > GT3e desktop. > > Reviewed-by: Lionel Landwerlin > --- > src/intel/vulkan/genX_pipeline.c

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 02:55:42PM -0800, Nanley Chery wrote: > On Fri, Feb 10, 2017 at 11:02:19AM -0800, Jason Ekstrand wrote: > > It's a bit hard to measure because it almost gets lost in the noise, > > but this seemed to help Dota 2 by a percent or two on my Broadw

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 03:21:38PM -0800, Jason Ekstrand wrote: > On Fri, Feb 10, 2017 at 2:55 PM, Nanley Chery wrote: > > > On Fri, Feb 10, 2017 at 11:02:19AM -0800, Jason Ekstrand wrote: > > > It's a bit hard to measure because it almost gets lost in the noise, >

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

2017-02-10 Thread Nanley Chery
On Fri, Feb 10, 2017 at 03:31:32PM -0800, Jason Ekstrand wrote: > On Fri, Feb 10, 2017 at 3:18 PM, Nanley Chery wrote: > > > On Fri, Feb 10, 2017 at 02:55:42PM -0800, Nanley Chery wrote: > > > On Fri, Feb 10, 2017 at 11:02:19AM -0800, Jason Ekstrand wrote: > > >

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

2017-02-13 Thread Nanley Chery
On Fri, Feb 10, 2017 at 09:26:52PM -0800, Jason Ekstrand wrote: > On Fri, Feb 10, 2017 at 5:29 PM, Nanley Chery wrote: > > > On Fri, Feb 10, 2017 at 03:31:32PM -0800, Jason Ekstrand wrote: > > > On Fri, Feb 10, 2017 at 3:18 PM, Nanley Chery > > wrote: > > > &

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

2017-02-13 Thread Nanley Chery
On Fri, Feb 10, 2017 at 05:04:48PM -0800, Jason Ekstrand wrote: > On Fri, Feb 10, 2017 at 4:47 PM, Nanley Chery wrote: > > > On Fri, Feb 10, 2017 at 03:21:38PM -0800, Jason Ekstrand wrote: > > > On Fri, Feb 10, 2017 at 2:55 PM, Nanley Chery > > wrote: > > > &

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

2017-02-13 Thread Nanley Chery
tel/vulkan/genX_pipeline.c | 175 > +++ > 1 file changed, 141 insertions(+), 34 deletions(-) > This patch is, Reviewed-by: Nanley Chery > diff --git a/src/intel/vulkan/genX_pipeline.c > b/src/intel/vulkan/genX_pipeline.c > index 71b9

Re: [Mesa-dev] [PATCH v2 7/7] anv: Implement the Skylake stencil PMA optimization

2017-02-13 Thread Nanley Chery
On Fri, Feb 10, 2017 at 11:02:21AM -0800, Jason Ekstrand wrote: > This improves the performance of Dota 2 on my Sky Lake Skull Canyon > machine by about 2-3%. > This patch looks good. Could we compare our setup and testing in the office? I can't reproduce these numbers. -Nanley > Reviewed-by: L

Re: [Mesa-dev] [PATCH v2 7/7] anv: Implement the Skylake stencil PMA optimization

2017-02-14 Thread Nanley Chery
On Mon, Feb 13, 2017 at 08:45:47PM -0800, Jason Ekstrand wrote: > On Mon, Feb 13, 2017 at 6:13 PM, Jason Ekstrand > wrote: > > > On Mon, Feb 13, 2017 at 5:00 PM, Nanley Chery > > wrote: > > > >> On Fri, Feb 10, 2017 at 11:02:21AM -0800, Jason Ekstrand wrote:

Re: [Mesa-dev] [PATCH] anv: fix Get*MemoryRequirements for !LLC

2017-02-14 Thread Nanley Chery
On Tue, Feb 14, 2017 at 09:37:20AM -0800, Jason Ekstrand wrote: > On Tue, Feb 14, 2017 at 9:35 AM, Connor Abbott wrote: > > > On Tue, Feb 14, 2017 at 12:33 PM, Jason Ekstrand > > wrote: > > > On Tue, Feb 14, 2017 at 9:23 AM, Connor Abbott > > wrote: > > >> > > >> Even though we supported both c

Re: [Mesa-dev] [PATCH v2 7/7] anv: Implement the Skylake stencil PMA optimization

2017-02-14 Thread Nanley Chery
On Tue, Feb 14, 2017 at 10:53:37AM -0800, Jason Ekstrand wrote: > On Tue, Feb 14, 2017 at 10:35 AM, Nanley Chery > wrote: > > > On Mon, Feb 13, 2017 at 08:45:47PM -0800, Jason Ekstrand wrote: > > > On Mon, Feb 13, 2017 at 6:13 PM, Jason Ekstrand > > > wrote: &

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

2017-02-14 Thread Nanley Chery
mattering anytime soon. This patch is Reviewed-by: Nanley Chery > > diff --git a/src/intel/genxml/gen8.xml b/src/intel/genxml/gen8.xml > index 970e637..32ed764 100644 > --- a/src/intel/genxml/gen8.xml > +++ b/src/intel/genxml/gen8.xml > @@ -3200,4 +3200,25 @@ >

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

2017-02-14 Thread Nanley Chery
On Tue, Feb 14, 2017 at 02:18:56PM -0800, Nanley Chery wrote: > On Fri, Feb 10, 2017 at 11:02:16AM -0800, Jason Ekstrand wrote: > > Reviewed-by: Lionel Landwerlin > > --- > > src/intel/genxml/gen8.xml | 21 + > > 1 file changed, 21 insertions(+) &

Re: [Mesa-dev] [PATCH v2 6/7] genxml: Add the CACHE_MODE_0 register on gen9

2017-02-14 Thread Nanley Chery
On Fri, Feb 10, 2017 at 11:02:20AM -0800, Jason Ekstrand wrote: > Reviewed-by: Lionel Landwerlin > --- > src/intel/genxml/gen9.xml | 28 > 1 file changed, 28 insertions(+) > I know this is already upstream, but thought I might as well chime in - this looks good to m

[Mesa-dev] [PATCH] anv/image: Remove extra dependency on HiZ-specific variable

2017-02-22 Thread Nanley Chery
Depth buffers aren't allowed to be used as storage images. Fixes: 055ff2ec521 ("anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ") Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 05/18] anv/image: Remove extra dependency on HiZ-specific variable

2017-02-27 Thread Nanley Chery
surf_usage is only useful to image views that may use HiZ buffers. Storage image views don't use HiZ buffers. v2: Update commit message and add an assertion. Fixes: 055ff2ec521 ("anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ") Signed-off-by: Nanley Chery --- s

[Mesa-dev] [PATCH 02/18] anv/image: Add anv_layout_to_aux_usage()

2017-02-27 Thread Nanley Chery
This function supersedes layout_to_hiz_usage(). Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_image.c | 149 + src/intel/vulkan/anv_private.h | 4 ++ 2 files changed, 153 insertions(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel

[Mesa-dev] [PATCH 03/18] anv/cmd_buffer: Replace layout_to_hiz_usage()

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 57 ++ 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 5171e6f587..60230bf14b 100644 --- a/src

[Mesa-dev] [PATCH 00/18] anv: Remove the HiZ restriction on input attachments

2017-02-27 Thread Nanley Chery
x27;t sample the depth buffer through HiZ. * Patches 11-18: Allow HiZ on input attachment-capable depth/stencil buffers. This series increases the average frame rate on a release candidate of a proprietary Vulkan benchmark by an average of 9.94% over 3 runs on my SKL GT4. Nanley Cher

[Mesa-dev] [PATCH 04/18] anv: Update the HiZ sampling helper

2017-02-27 Thread Nanley Chery
Validate the inputs and actually verify that this image has a depth buffer. Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_blorp.c | 1 + src/intel/vulkan/anv_image.c | 7 +++ src/intel/vulkan/anv_private.h | 7 +-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git

[Mesa-dev] [PATCH 01/18] anv/pass: Avoid accessing attachment array out of bounds

2017-02-27 Thread Nanley Chery
Cc: Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_pass.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c index 2df18260d3..a8b24703bc 100644 --- a/src/intel/vulkan/anv_pass.c +++ b/src

[Mesa-dev] [PATCH 08/18] anv/descriptor_set: Store aux usage of sampled image descriptors

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_descriptor_set.c | 10 ++ src/intel/vulkan/anv_private.h| 5 + 2 files changed, 15 insertions(+) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index 7853ec7dd9..369698174e

[Mesa-dev] [PATCH 06/18] anv/image: Simplify setup of HiZ sampler surface state

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_image.c | 31 +-- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index a17c398993..dd646a7027 100644 --- a/src/intel/vulkan/anv_image.c

[Mesa-dev] [PATCH 11/18] anv: Store the user's VkAttachmentReference

2017-02-27 Thread Nanley Chery
We will be using the image layout. Store the full struct directly from the user. Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_blorp.c | 24 src/intel/vulkan/anv_cmd_buffer.c | 4 ++-- src/intel/vulkan/anv_pass.c| 21 ++--- src

[Mesa-dev] [PATCH 12/18] anv/pass: Fix size of anv_render_pass:subpass_attachments

2017-02-27 Thread Nanley Chery
Don't allocate space for resolve attachments if the subpass has none. Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_pass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c index 399ccb3970..5bd205d2f0 1

[Mesa-dev] [PATCH 09/18] anv/cmd_buffer: Conditionally choose the sampled image surface state

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 60230bf14b..2cb4468696 100644 --- a/src/intel/vulkan

[Mesa-dev] [PATCH 16/18] anv/cmd_buffer: Add attachment transitioning functions

2017-02-27 Thread Nanley Chery
These are needed to transition input attachments. Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index

[Mesa-dev] [PATCH 15/18] anv/blorp: Encapsulate subpass id querying

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_blorp.c | 8 ++-- src/intel/vulkan/anv_private.h | 15 +++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index cbb49022c0..fa1f370717 100644 --- a

[Mesa-dev] [PATCH 07/18] anv/image: Create an additional surface state for sampling

2017-02-27 Thread Nanley Chery
This will be used to sample a depth input attachment without having to pass through the HiZ buffer. Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_image.c | 22 +- src/intel/vulkan/anv_private.h | 6 ++ 2 files changed, 27 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH 13/18] anv/pass: Store subpass attachment reference list

2017-02-27 Thread Nanley Chery
We'll loop through this array when performing automatic layout transitions. Signed-off-by: Nanley Chery --- src/intel/vulkan/anv_pass.c| 6 +- src/intel/vulkan/anv_private.h | 7 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_pass.c

[Mesa-dev] [PATCH 10/18] anv/cmd_buffer: Remove extra resolve for certain depth buffers

2017-02-27 Thread Nanley Chery
Due to recent commits, the sampler now bypasses the auxiliary HiZ buffer when reading from a depth image subresource that is in the general layout. Remove this unneeded resolve. Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 17 + 1 file changed, 1

[Mesa-dev] [PATCH 17/18] anv/cmd_buffer: Centralize automatic layout transitions

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 54 +- 1 file changed, 12 insertions(+), 42 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 502bf691d1..017511ed70 100644 --- a/src

Re: [Mesa-dev] [PATCH] anv/image: Remove extra dependency on HiZ-specific variable

2017-02-27 Thread Nanley Chery
On Fri, Feb 24, 2017 at 06:02:16PM -0800, Jason Ekstrand wrote: > seems reasonable > > Reviewed-by: Jason Ekstrand > Thanks for the review! I've updated this patch a bit in the series I just sent out. -Nanley > On Wed, Feb 22, 2017 at 4:33 PM, Nanley Chery wrote: > &

[Mesa-dev] [PATCH 18/18] anv/image: Allow HiZ on input attachment-capable depth/stencil images

2017-02-27 Thread Nanley Chery
following buggy CTS tests to fail: * dEQP-VK.renderpass.attachment_allocation.input_output.93 * dEQP-VK.renderpass.attachment_allocation.input_output.92 Upstream is currently evaluating a bug fix for the tests. Signed-off-by: Nanley Chery --- Thanks to Eero, for pointing out the anv FINISHME

[Mesa-dev] [PATCH 14/18] anv/cmd_buffer: Enable render pass awareness

2017-02-27 Thread Nanley Chery
Signed-off-by: Nanley Chery --- src/intel/vulkan/genX_cmd_buffer.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 1c31082136..b5eda3a13d 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel

Re: [Mesa-dev] [PATCH 03/18] anv/cmd_buffer: Replace layout_to_hiz_usage()

2017-02-28 Thread Nanley Chery
On Mon, Feb 27, 2017 at 08:41:56PM -0800, Jason Ekstrand wrote: > On Feb 27, 2017 5:21 PM, "Nanley Chery" wrote: > > Signed-off-by: Nanley Chery > --- > src/intel/vulkan/genX_cmd_buffer.c | 57 ++ > > 1 file changed,

Re: [Mesa-dev] [PATCH 04/18] anv: Update the HiZ sampling helper

2017-02-28 Thread Nanley Chery
On Mon, Feb 27, 2017 at 08:48:48PM -0800, Jason Ekstrand wrote: > On Feb 27, 2017 5:20 PM, "Nanley Chery" wrote: > > Validate the inputs and actually verify that this image has a depth > buffer. > > Signed-off-by: Nanley Chery > --- > src/intel/vulkan/anv_b

Re: [Mesa-dev] [PATCH 08/18] anv/descriptor_set: Store aux usage of sampled image descriptors

2017-02-28 Thread Nanley Chery
layout transitions. This is because the isl_aux_usage enum has no equivalent to VK_IMAGE_LAYOUT_UNDEFINED - a value that allows us to avoid resolve operations. -Nanley > On Feb 27, 2017 5:20 PM, "Nanley Chery" wrote: > > Signed-off-by: Nanley Chery > --- > src/intel/vulk

Re: [Mesa-dev] [PATCH 10/18] anv/cmd_buffer: Remove extra resolve for certain depth buffers

2017-02-28 Thread Nanley Chery
a HiZ resolve ^ If you replace "is in" with "enters", your statement is correct. > because we are ignoring the HiZ buffer anyway. > -Nanley > On Feb 27, 2017 5:22 PM, "Nanley Chery" wrote: > > > Due to recent commits, the sampler now b

Re: [Mesa-dev] [PATCH 13/18] anv/pass: Store subpass attachment reference list

2017-02-28 Thread Nanley Chery
On Mon, Feb 27, 2017 at 09:22:13PM -0800, Jason Ekstrand wrote: > On Feb 27, 2017 5:21 PM, "Nanley Chery" wrote: > > We'll loop through this array when performing automatic layout > transitions. > > Signed-off-by: Nanley Chery > --- > src/intel/vulka

Re: [Mesa-dev] [PATCH 14/18] anv/cmd_buffer: Enable render pass awareness

2017-02-28 Thread Nanley Chery
anley > On Feb 27, 2017 5:22 PM, "Nanley Chery" wrote: > > > Signed-off-by: Nanley Chery > > --- > > src/intel/vulkan/genX_cmd_buffer.c | 7 +++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/src/intel/vulkan/genX_cmd_buffer

Re: [Mesa-dev] [PATCH 04/18] anv: Update the HiZ sampling helper

2017-02-28 Thread Nanley Chery
On Tue, Feb 28, 2017 at 08:07:35AM -0800, Jason Ekstrand wrote: > On Tue, Feb 28, 2017 at 8:02 AM, Nanley Chery wrote: > > > On Mon, Feb 27, 2017 at 08:48:48PM -0800, Jason Ekstrand wrote: > > > On Feb 27, 2017 5:20 PM, "Nanley Chery" wrote: > > > >

Re: [Mesa-dev] [PATCH 13/18] anv/pass: Store subpass attachment reference list

2017-02-28 Thread Nanley Chery
On Tue, Feb 28, 2017 at 09:28:15AM -0800, Jason Ekstrand wrote: > On Tue, Feb 28, 2017 at 8:48 AM, Nanley Chery wrote: > > > On Mon, Feb 27, 2017 at 09:22:13PM -0800, Jason Ekstrand wrote: > > > On Feb 27, 2017 5:21 PM, "Nanley Chery" wrote: > > >

Re: [Mesa-dev] [PATCH 04/18] anv: Update the HiZ sampling helper

2017-02-28 Thread Nanley Chery
On Tue, Feb 28, 2017 at 09:33:26AM -0800, Jason Ekstrand wrote: > On Tue, Feb 28, 2017 at 9:29 AM, Nanley Chery wrote: > > > On Tue, Feb 28, 2017 at 08:07:35AM -0800, Jason Ekstrand wrote: > > > On Tue, Feb 28, 2017 at 8:02 AM, Nanley Chery > > wrote: > > > &

Re: [Mesa-dev] [PATCH 02/18] anv/image: Add anv_layout_to_aux_usage()

2017-02-28 Thread Nanley Chery
On Tue, Feb 28, 2017 at 08:26:56AM -0800, Jason Ekstrand wrote: > On Mon, Feb 27, 2017 at 5:20 PM, Nanley Chery wrote: > > > This function supersedes layout_to_hiz_usage(). > > > > Signed-off-by: Nanley Chery > > --- > >

Re: [Mesa-dev] [PATCH 02/18] anv/image: Add anv_layout_to_aux_usage()

2017-02-28 Thread Nanley Chery
On Tue, Feb 28, 2017 at 10:38:12AM -0800, Jason Ekstrand wrote: > On Tue, Feb 28, 2017 at 10:32 AM, Nanley Chery > wrote: > > > On Tue, Feb 28, 2017 at 08:26:56AM -0800, Jason Ekstrand wrote: > > > On Mon, Feb 27, 2017 at 5:20 PM, Nanley Chery > > wrote: > >

[Mesa-dev] [PATCH 2/2] mesa/teximage: accept ASTC formats for 3D texture specification

2015-07-28 Thread Nanley Chery
From: Nanley Chery The ASTC spec was revised as follows: Revision 2, April 28, 2015 - added CompressedTex{Sub,}Image3D to commands accepting ASTC format tokens in the New Tokens section [...]. Support only exists in the HDR submode: Add a second new column "3D Tex." whic

[Mesa-dev] [PATCH 1/2] mesa/texformat: enable ASTC formats for TexStorage

2015-07-28 Thread Nanley Chery
From: Nanley Chery According to the spec, Tex*Storage* commands are supported if the GL implementation has support for immutable textures. Signed-off-by: Nanley Chery --- src/mesa/main/texformat.c | 56 +++ 1 file changed, 56 insertions(+) diff

[Mesa-dev] [PATCH 0/2] Add missing bits for ASTC support

2015-07-28 Thread Nanley Chery
From: Nanley Chery The following patches add missing functionality to my prior ASTC patch series needed to advertise support for the extension. The missing first patch was an oversight, while the second patch is due to the release of a newer spec revision. The series will be injected into my

[Mesa-dev] [PATCH v2 2/2]] mesa/teximage: accept ASTC formats for 3D texture specification

2015-07-30 Thread Nanley Chery
From: Nanley Chery The ASTC spec was revised as follows: Revision 2, April 28, 2015 - added CompressedTex{Sub,}Image3D to commands accepting ASTC format tokens in the New Tokens section [...]. Support only exists in the HDR submode: Add a second new column "3D Tex." whic

[Mesa-dev] [PATCH 2/4] mesa/formats: refactor by removing compressed formats

2015-08-11 Thread Nanley Chery
From: Nanley Chery All compressed formats return GL_FALSE. Remove all switch cases for compressed formats. Compressed formats should be at the bottom of the switch statement, so ordering is still preserved. Cc: Jason Ekstrand Signed-off-by: Nanley Chery --- src/mesa/main/formats.c | 47

[Mesa-dev] [PATCH 3/4] mesa/formats: add more MESA_FORMAT_LAYOUTs

2015-08-11 Thread Nanley Chery
From: Nanley Chery Add the classes of compressed formats as layouts. This will make determining if a texture is an ASTC format simpler. Cc: Jason Ekstrand Signed-off-by: Nanley Chery --- src/mesa/main/format_info.py | 4 +++- src/mesa/main/formats.c | 6 ++ src/mesa/main/formats.h

<    1   2   3   4   5   6   7   8   9   10   >