anv: allocate RT scratch in local memory

Like a 100x (not joking) improvement.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17674>
This commit is contained in:
Lionel Landwerlin 2022-07-21 09:27:16 +00:00 committed by Marge Bot
parent dd781c1ccb
commit 1aa4a91dbf
1 changed files with 1 additions and 1 deletions

View File

@ -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) {