st/nine: No need for the local flag for temporaries in ff
authorAxel Davy <axel.davy@ens.fr>
Fri, 23 Sep 2016 20:24:42 +0000 (22:24 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/nine_ff.c

index 18d00a710ea3bb9718fa940949082209370f9073..56876f00255ebc4efce621c471c3aed0c62efd4c 100644 (file)
@@ -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];