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:
committed by
Marge Bot
parent
bfa189b6e8
commit
18d8c3ca33
@@ -46,7 +46,8 @@ anv_bo_sync_init(struct vk_device *vk_device,
|
|||||||
|
|
||||||
return anv_device_alloc_bo(device, "bo-sync", 4096,
|
return anv_device_alloc_bo(device, "bo-sync", 4096,
|
||||||
ANV_BO_ALLOC_EXTERNAL |
|
ANV_BO_ALLOC_EXTERNAL |
|
||||||
ANV_BO_ALLOC_IMPLICIT_SYNC,
|
ANV_BO_ALLOC_IMPLICIT_SYNC |
|
||||||
|
ANV_BO_ALLOC_INTERNAL,
|
||||||
0 /* explicit_address */,
|
0 /* explicit_address */,
|
||||||
&sync->bo);
|
&sync->bo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ anv_cmd_buffer_set_ray_query_buffer(struct anv_cmd_buffer *cmd_buffer,
|
|||||||
struct anv_bo *new_bo;
|
struct anv_bo *new_bo;
|
||||||
VkResult result = anv_device_alloc_bo(device, "RT queries shadow",
|
VkResult result = anv_device_alloc_bo(device, "RT queries shadow",
|
||||||
ray_shadow_size,
|
ray_shadow_size,
|
||||||
0, /* alloc_flags */
|
ANV_BO_ALLOC_INTERNAL, /* alloc_flags */
|
||||||
0, /* explicit_address */
|
0, /* explicit_address */
|
||||||
&new_bo);
|
&new_bo);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
@@ -1457,7 +1457,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_INTERNAL, /* alloc_flags */
|
||||||
0, /* explicit_address */
|
0, /* explicit_address */
|
||||||
&new_bo);
|
&new_bo);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
|
|||||||
@@ -94,7 +94,9 @@ anv_measure_init(struct anv_cmd_buffer *cmd_buffer)
|
|||||||
ASSERTED VkResult result =
|
ASSERTED VkResult result =
|
||||||
anv_device_alloc_bo(device, "measure data",
|
anv_device_alloc_bo(device, "measure data",
|
||||||
config->batch_size * sizeof(uint64_t),
|
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,
|
0,
|
||||||
(struct anv_bo**)&measure->bo);
|
(struct anv_bo**)&measure->bo);
|
||||||
measure->base.timestamps = measure->bo->map;
|
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;
|
struct anv_trtt *trtt = &device->trtt;
|
||||||
|
|
||||||
result = anv_device_alloc_bo(device, "trtt-page-table",
|
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)
|
if (result != VK_SUCCESS)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user