From: Jordan Justen Date: Mon, 28 Mar 2016 19:08:31 +0000 (-0700) Subject: anv: Invalidate state cache before L3 partitioning set-up. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f60683b32a45081979df089894d36d05f2d0ec0c;p=mesa.git anv: Invalidate state cache before L3 partitioning set-up. Port 10d84ba9f084174a1e8e7639dfb05dd855ba86e8 to anv. Signed-off-by: Jordan Justen --- diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index 06b3a75cbef..b5d21efb203 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -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 diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c index dab1d7411e7..5b6afb3d70d 100644 --- a/src/intel/vulkan/gen8_cmd_buffer.c +++ b/src/intel/vulkan/gen8_cmd_buffer.c @@ -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