mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 16:40:30 +01:00
fix tmp storage problem for IR_I_TO_F
This commit is contained in:
parent
19a9050548
commit
3e0fbc7efc
1 changed files with 4 additions and 0 deletions
|
|
@ -1456,6 +1456,10 @@ emit(slang_emit_info *emitInfo, slang_ir_node *n)
|
|||
/* just move */
|
||||
emit(emitInfo, n->Children[0]);
|
||||
inst = new_instruction(emitInfo, OPCODE_MOV);
|
||||
if (!n->Store) {
|
||||
if (!alloc_temp_storage(emitInfo, n, 1))
|
||||
return NULL;
|
||||
}
|
||||
storage_to_dst_reg(&inst->DstReg, n->Store, n->Writemask);
|
||||
storage_to_src_reg(&inst->SrcReg[0], n->Children[0]->Store);
|
||||
if (emitInfo->EmitComments)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue