From: Axel Davy Date: Fri, 23 Sep 2016 20:24:42 +0000 (+0200) Subject: st/nine: No need for the local flag for temporaries in ff X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f18b6f351f159ecd7703cc818941394990bafe9;p=mesa.git st/nine: No need for the local flag for temporaries in ff Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 18d00a710ea..56876f00255 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];