[Mesa-dev] [PATCH 22/75] st/nine: No need for the local flag for temporaries in ff
Axel Davy
axel.davy at ens.fr
Wed Oct 5 20:08:55 UTC 2016
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
src/gallium/state_trackers/nine/nine_ff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c
index 18d00a7..56876f0 100644
--- a/src/gallium/state_trackers/nine/nine_ff.c
+++ b/src/gallium/state_trackers/nine/nine_ff.c
@@ -430,7 +430,7 @@ nine_ff_build_vs(struct NineDevice9 *device, struct vs_build_ctx *vs)
/* Declare TEMPs:
*/
for (i = 0; i < num_r; ++i)
- r[i] = ureg_DECL_local_temporary(ureg);
+ r[i] = ureg_DECL_temporary(ureg);
tmp = r[0];
tmp_x = ureg_writemask(tmp, TGSI_WRITEMASK_X);
tmp_y = ureg_writemask(tmp, TGSI_WRITEMASK_Y);
@@ -1237,7 +1237,7 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
/* Declare all TEMPs we might need, serious drivers have a register allocator. */
for (i = 0; i < ARRAY_SIZE(ps.r); ++i)
- ps.r[i] = ureg_DECL_local_temporary(ureg);
+ ps.r[i] = ureg_DECL_temporary(ureg);
ps.rCur = ps.r[0];
ps.rTmp = ps.r[1];
ps.rTex = ps.r[2];
--
2.10.0
More information about the mesa-dev
mailing list