v3d/compiler: fix spill offset
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Fixes: 97566efe5c ("v3d: Rematerialize MOVs of uniforms instead of spilling them.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5664>
This commit is contained in:
@@ -213,7 +213,7 @@ v3d_spill_reg(struct v3d_compile *c, int spill_temp)
|
||||
uint32_t spill_offset = 0;
|
||||
|
||||
if (!is_uniform) {
|
||||
uint32_t spill_offset = c->spill_size;
|
||||
spill_offset = c->spill_size;
|
||||
c->spill_size += V3D_CHANNELS * sizeof(uint32_t);
|
||||
|
||||
if (spill_offset == 0)
|
||||
|
||||
Reference in New Issue
Block a user