From 24e7db0a368e24e7a9381e3b0202a8558ecde170 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 22 Jun 2019 10:57:39 -0500 Subject: anv: Set Stateless Data Port Access MOCS This is the MOCS setting used for the A64 stateless messages which we sometimes use for SSBO operations. Fixes: 48ed2a7bb009 "anv: Implement VK_EXT_buffer_device_address" Fixes: 79fb0d27f3ab "anv: Implement SSBOs bindings with GPU addr..." Reviewed-by: Chad Versace Reviewed-by: Lionel Landwerlin (cherry picked from commit 6a2ff217b8a7f126771ce73783be4e2fa4eac5c2) --- src/intel/vulkan/genX_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 1caa0a8ce43..f3dea6a7291 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -76,6 +76,8 @@ genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer) sba.GeneralStateMOCS = GENX(MOCS); sba.GeneralStateBaseAddressModifyEnable = true; + sba.StatelessDataPortAccessMOCS = GENX(MOCS); + sba.SurfaceStateBaseAddress = anv_cmd_buffer_surface_base_address(cmd_buffer); sba.SurfaceStateMOCS = GENX(MOCS); -- cgit v1.2.3