r600/sfn: use new temp register allocation when loading single value temporaries

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>
This commit is contained in:
Gert Wollny 2020-04-12 16:54:03 +02:00 committed by Marge Bot
parent 50b66622f1
commit cc23920746
1 changed files with 1 additions and 2 deletions

View File

@ -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;