[Mesa-dev] [PATCH] anv: disable depth pma fix on Gen > 9

Kenneth Graunke kenneth at whitecape.org
Fri Oct 20 21:05:05 UTC 2017


On Friday, October 20, 2017 10:33:39 AM PDT Lionel Landwerlin wrote:
> This workaround isn't listed on Gen10.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  src/intel/vulkan/gen8_cmd_buffer.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c
> index f19867ca320..751212b8f43 100644
> --- a/src/intel/vulkan/gen8_cmd_buffer.c
> +++ b/src/intel/vulkan/gen8_cmd_buffer.c
> @@ -259,6 +259,8 @@ want_depth_pma_fix(struct anv_cmd_buffer *cmd_buffer)
>  UNUSED static bool
>  want_stencil_pma_fix(struct anv_cmd_buffer *cmd_buffer)
>  {
> +   if (GEN_GEN > 9)
> +      return false;
>     assert(GEN_GEN == 9);
>  
>     /* From the Skylake PRM Vol. 2c CACHE_MODE_1::STC PMA Optimization Enable:
> 

Subject should be

    anv: Disable stencil pma fix on Gen > 9

...the depth PMA fix is already off on Gen9+.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171020/fe358e13/attachment.sig>


More information about the mesa-dev mailing list