mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
anv: Add missing ANV_BO_ALLOC_INTERNAL
Some places doing driver internal allocations was not setting ANV_BO_ALLOC_INTERNAL, so adding the flag in those places here. This will increase the accuracy of the RMV report. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28677>
This commit is contained in:
parent
bfa189b6e8
commit
18d8c3ca33
4 changed files with 10 additions and 5 deletions
|
|
@ -46,7 +46,8 @@ anv_bo_sync_init(struct vk_device *vk_device,
|
|||
|
||||
return anv_device_alloc_bo(device, "bo-sync", 4096,
|
||||
ANV_BO_ALLOC_EXTERNAL |
|
||||
ANV_BO_ALLOC_IMPLICIT_SYNC,
|
||||
ANV_BO_ALLOC_IMPLICIT_SYNC |
|
||||
ANV_BO_ALLOC_INTERNAL,
|
||||
0 /* explicit_address */,
|
||||
&sync->bo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ anv_cmd_buffer_set_ray_query_buffer(struct anv_cmd_buffer *cmd_buffer,
|
|||
struct anv_bo *new_bo;
|
||||
VkResult result = anv_device_alloc_bo(device, "RT queries shadow",
|
||||
ray_shadow_size,
|
||||
0, /* alloc_flags */
|
||||
ANV_BO_ALLOC_INTERNAL, /* alloc_flags */
|
||||
0, /* explicit_address */
|
||||
&new_bo);
|
||||
if (result != VK_SUCCESS) {
|
||||
|
|
@ -1457,7 +1457,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_INTERNAL, /* alloc_flags */
|
||||
0, /* explicit_address */
|
||||
&new_bo);
|
||||
if (result != VK_SUCCESS) {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,9 @@ anv_measure_init(struct anv_cmd_buffer *cmd_buffer)
|
|||
ASSERTED VkResult result =
|
||||
anv_device_alloc_bo(device, "measure data",
|
||||
config->batch_size * sizeof(uint64_t),
|
||||
ANV_BO_ALLOC_MAPPED | ANV_BO_ALLOC_HOST_CACHED_COHERENT,
|
||||
ANV_BO_ALLOC_MAPPED |
|
||||
ANV_BO_ALLOC_HOST_CACHED_COHERENT |
|
||||
ANV_BO_ALLOC_INTERNAL,
|
||||
0,
|
||||
(struct anv_bo**)&measure->bo);
|
||||
measure->base.timestamps = measure->bo->map;
|
||||
|
|
|
|||
|
|
@ -308,7 +308,9 @@ trtt_make_page_table_bo(struct anv_device *device, struct anv_bo **bo)
|
|||
struct anv_trtt *trtt = &device->trtt;
|
||||
|
||||
result = anv_device_alloc_bo(device, "trtt-page-table",
|
||||
ANV_TRTT_PAGE_TABLE_BO_SIZE, 0, 0, bo);
|
||||
ANV_TRTT_PAGE_TABLE_BO_SIZE |
|
||||
ANV_BO_ALLOC_INTERNAL,
|
||||
0, 0, bo);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue