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:
Konstantin Seurer
2023-08-21 12:54:42 +02:00
committed by Marge Bot
parent 4ef573735e
commit b7c582e5c7
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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++)