mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
anv: Don't require 32-bit addresses for scratch on Gen12.5+
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17908>
This commit is contained in:
parent
d82cea5fc3
commit
239623ecee
1 changed files with 4 additions and 2 deletions
|
|
@ -1490,9 +1490,11 @@ anv_scratch_pool_alloc(struct anv_device *device, struct anv_scratch_pool *pool,
|
|||
*
|
||||
* so nothing will ever touch the top page.
|
||||
*/
|
||||
enum anv_bo_alloc_flags alloc_flags = ANV_BO_ALLOC_LOCAL_MEM;
|
||||
if (devinfo->verx10 < 125)
|
||||
alloc_flags |= ANV_BO_ALLOC_32BIT_ADDRESS;
|
||||
VkResult result = anv_device_alloc_bo(device, "scratch", size,
|
||||
ANV_BO_ALLOC_32BIT_ADDRESS |
|
||||
ANV_BO_ALLOC_LOCAL_MEM,
|
||||
alloc_flags,
|
||||
0 /* explicit_address */,
|
||||
&bo);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue