radv: skip creation of null TLAS for null winsys
This won't work because there are no memory types.
Fixes fossilize replay with NULL winsys.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Fixes: 31ca19589f ("radv: Create a null TLAS as meta state")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20878>
This commit is contained in:
@@ -469,6 +469,9 @@ radix_sort_fill_buffer(VkCommandBuffer commandBuffer,
|
||||
VkResult
|
||||
radv_device_init_null_accel_struct(struct radv_device *device)
|
||||
{
|
||||
if (device->physical_device->memory_properties.memoryTypeCount == 0)
|
||||
return VK_SUCCESS; /* Exit in the case of null winsys. */
|
||||
|
||||
VkDevice _device = radv_device_to_handle(device);
|
||||
|
||||
uint32_t bvh_offset = ALIGN(sizeof(struct radv_accel_struct_header), 64);
|
||||
|
||||
Reference in New Issue
Block a user