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:

committed by
Marge Bot

parent
dd781c1ccb
commit
1aa4a91dbf
@@ -1087,7 +1087,7 @@ void anv_CmdSetRayTracingPipelineStackSizeKHR(
|
|||||||
struct anv_bo *new_bo;
|
struct anv_bo *new_bo;
|
||||||
VkResult result = anv_device_alloc_bo(device, "RT scratch",
|
VkResult result = anv_device_alloc_bo(device, "RT scratch",
|
||||||
rt->scratch.layout.total_size,
|
rt->scratch.layout.total_size,
|
||||||
0, /* alloc_flags */
|
ANV_BO_ALLOC_LOCAL_MEM,
|
||||||
0, /* explicit_address */
|
0, /* explicit_address */
|
||||||
&new_bo);
|
&new_bo);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
|
Reference in New Issue
Block a user