anv: Assert ray query BO actually exists
The crash will happen if the client tries to use ray queries without enabling the KHR_ray_query extension. Add an assert to be able to catch this sooner. Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30581>
This commit is contained in:
committed by
Marge Bot
parent
4c1a912372
commit
442cc7996e
@@ -477,6 +477,7 @@ anv_cmd_buffer_set_ray_query_buffer(struct anv_cmd_buffer *cmd_buffer,
|
||||
}
|
||||
|
||||
/* Add the HW buffer to the list of BO used. */
|
||||
assert(device->ray_query_bo);
|
||||
anv_reloc_list_add_bo(cmd_buffer->batch.relocs,
|
||||
device->ray_query_bo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user