r600/sfn: use get_temp_vec4 directly when fetching

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9874>
This commit is contained in:
Gert Wollny 2021-03-27 17:41:34 +01:00 committed by Marge Bot
parent 6da330ece7
commit bf60ffd0cd
1 changed files with 1 additions and 1 deletions

View File

@ -846,7 +846,7 @@ GPRVector ShaderFromNirProcessor::vec_from_nir_with_fetch_constant(const nir_src
*/
if (!use_same) {
AluInstruction *ir = nullptr;
GPRVector result(allocate_temp_register(), swizzle);
GPRVector result = get_temp_vec4(swizzle);
for (int i = 0; i < 4; ++i) {
if (swizzle[i] < 4 && (mask & (1 << i))) {
ir = new AluInstruction(op1_mov, result[i], from_nir(src, swizzle[i]),