radv: Add RADV_MAX_HIT_ATTRIB_DWORDS
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24271>
This commit is contained in:

committed by
Marge Bot

parent
4ef573735e
commit
b7c582e5c7
@@ -121,7 +121,8 @@
|
||||
/* The spec requires this to be 32. */
|
||||
#define RADV_RT_HANDLE_SIZE 32
|
||||
|
||||
#define RADV_MAX_HIT_ATTRIB_SIZE 32
|
||||
#define RADV_MAX_HIT_ATTRIB_SIZE 32
|
||||
#define RADV_MAX_HIT_ATTRIB_DWORDS (RADV_MAX_HIT_ATTRIB_SIZE / 4)
|
||||
|
||||
#define RADV_SHADER_ALLOC_ALIGNMENT 256
|
||||
#define RADV_SHADER_ALLOC_MIN_ARENA_SIZE (256 * 1024)
|
||||
|
@@ -1488,7 +1488,7 @@ radv_build_traversal(struct radv_device *device, struct radv_ray_tracing_pipelin
|
||||
lower_hit_attrib_derefs(b->shader);
|
||||
|
||||
/* Register storage for hit attributes */
|
||||
nir_variable *hit_attribs[RADV_MAX_HIT_ATTRIB_SIZE / sizeof(uint32_t)];
|
||||
nir_variable *hit_attribs[RADV_MAX_HIT_ATTRIB_DWORDS];
|
||||
|
||||
if (!monolithic) {
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(hit_attribs); i++)
|
||||
|
Reference in New Issue
Block a user