anv: disable stencil pma fix on Gen > 9
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Oct 2017 17:28:48 +0000 (18:28 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 21 Oct 2017 01:37:33 +0000 (02:37 +0100)
This workaround isn't listed on Gen10.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/gen8_cmd_buffer.c

index f19867ca320155f391d2b01c5bc79c0bc02112bd..751212b8f43d924c5260e817da3ae0de7d77b570 100644 (file)
@@ -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: