Mesa (master): v3d/compiler: fix spill offset
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 29 12:51:53 UTC 2020
Module: Mesa
Branch: master
Commit: 653dff949e93a8dc53924387f7b18328d14ebc60
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=653dff949e93a8dc53924387f7b18328d14ebc60
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Fri Jun 26 12:25:01 2020 +0200
v3d/compiler: fix spill offset
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova at igalia.com>
Fixes: 97566efe5cac0ff11b ("v3d: Rematerialize MOVs of uniforms instead of spilling them.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5664>
---
src/broadcom/compiler/vir_register_allocate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c
index eac027f9e67..76b492d1bce 100644
--- a/src/broadcom/compiler/vir_register_allocate.c
+++ b/src/broadcom/compiler/vir_register_allocate.c
@@ -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)
More information about the mesa-commit
mailing list