anv: Invalidate state cache before L3 partitioning set-up.
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 28 Mar 2016 19:08:31 +0000 (12:08 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Mar 2016 00:01:35 +0000 (17:01 -0700)
Port 10d84ba9f084174a1e8e7639dfb05dd855ba86e8 to anv.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/gen7_cmd_buffer.c
src/intel/vulkan/gen8_cmd_buffer.c

index 06b3a75cbef59ca2945f364c142137c7a6aa67b2..b5d21efb2034ea7191b626d5891900c223df8ea8 100644 (file)
@@ -351,6 +351,7 @@ genX(cmd_buffer_config_l3)(struct anv_cmd_buffer *cmd_buffer, bool enable_slm)
                      .TextureCacheInvalidationEnable = true,
                      .ConstantCacheInvalidationEnable = true,
                      .InstructionCacheInvalidateEnable = true,
+                     .StateCacheInvalidationEnable = true,
                      .PostSyncOperation = NoWrite);
 
       /* Now send a third stalling flush to make sure that invalidation is
index dab1d7411e70d3469bc064e4603a11dc7ad9b4bb..5b6afb3d70d5adf5283fbd99dacab08f00c7a54a 100644 (file)
@@ -162,6 +162,7 @@ genX(cmd_buffer_config_l3)(struct anv_cmd_buffer *cmd_buffer, bool enable_slm)
                      .TextureCacheInvalidationEnable = true,
                      .ConstantCacheInvalidationEnable = true,
                      .InstructionCacheInvalidateEnable = true,
+                     .StateCacheInvalidationEnable = true,
                      .PostSyncOperation = NoWrite);
 
       /* Now send a third stalling flush to make sure that invalidation is