From cc239207463916e992367e9f53351883bf82ea06 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 12 Apr 2020 16:54:03 +0200 Subject: [PATCH] r600/sfn: use new temp register allocation when loading single value temporaries Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_shader_base.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_base.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_base.cpp index e0aeb887083..a1336fb242e 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_base.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_shader_base.cpp @@ -788,8 +788,7 @@ PValue ShaderFromNirProcessor::from_nir_with_fetch_constant(const nir_src& src, if (value->type() != Value::gpr && value->type() != Value::gpr_vector && value->type() != Value::gpr_array_value) { - unsigned temp = allocate_temp_register(); - PValue retval(new GPRValue(temp, component)); + PValue retval = get_temp_register(); emit_instruction(new AluInstruction(op1_mov, retval, value, EmitInstruction::last_write)); value = retval; -- 2.30.2