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>
(cherry picked from commit 653dff949e)
This commit is contained in:
Iago Toral Quiroga 2020-06-26 12:25:01 +02:00 committed by Eric Engestrom
parent ce2092baa2
commit facfe6c0d8
2 changed files with 2 additions and 2 deletions

View file

@ -3136,7 +3136,7 @@
"description": "v3d/compiler: fix spill offset",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "97566efe5cac0ff11b23d8f27001fc98c7cea2af"
},

View file

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