Module: Mesa Branch: main Commit: 1aa4a91dbf84b9254daf7462fd70df535c92b40e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1aa4a91dbf84b9254daf7462fd70df535c92b40e
Author: Lionel Landwerlin <[email protected]> Date: Thu Jul 21 09:27:16 2022 +0000 anv: allocate RT scratch in local memory Like a 100x (not joking) improvement. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Marcin Ĺšlusarz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17674> --- src/intel/vulkan/anv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index b3a2a2cc2e1..c83147702b6 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -1087,7 +1087,7 @@ void anv_CmdSetRayTracingPipelineStackSizeKHR( struct anv_bo *new_bo; VkResult result = anv_device_alloc_bo(device, "RT scratch", rt->scratch.layout.total_size, - 0, /* alloc_flags */ + ANV_BO_ALLOC_LOCAL_MEM, 0, /* explicit_address */ &new_bo); if (result != VK_SUCCESS) {
