mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radv: Implement NULL accel struct descriptor write.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12592>
This commit is contained in:
parent
2070d36cf3
commit
148ea4375c
1 changed files with 1 additions and 1 deletions
|
|
@ -1104,7 +1104,7 @@ static void
|
|||
write_accel_struct(void *ptr, VkAccelerationStructureKHR _accel_struct)
|
||||
{
|
||||
RADV_FROM_HANDLE(radv_acceleration_structure, accel_struct, _accel_struct);
|
||||
uint64_t va = radv_accel_struct_get_va(accel_struct);
|
||||
uint64_t va = accel_struct ? radv_accel_struct_get_va(accel_struct) : 0;
|
||||
memcpy(ptr, &va, sizeof(va));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue