mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 18:48:28 +02:00
fix the subassig, mulassign and divassign cases
This commit is contained in:
parent
629fd78f79
commit
4f5901b265
1 changed files with 3 additions and 12 deletions
|
|
@ -1969,10 +1969,7 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
|
|||
{
|
||||
slang_ir_node *n;
|
||||
assert(oper->num_children == 2);
|
||||
n = _slang_gen_function_call_name(A, "-=", oper, NULL);
|
||||
/* The result of this operation should be stored back into child[0] */
|
||||
assert(n->Children[0]->Store);
|
||||
n->Store = n->Children[0]->Store;
|
||||
n = _slang_gen_function_call_name(A, "-=", oper, &oper->children[0]);
|
||||
return n;
|
||||
}
|
||||
break;
|
||||
|
|
@ -1980,20 +1977,14 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
|
|||
{
|
||||
slang_ir_node *n;
|
||||
assert(oper->num_children == 2);
|
||||
n = _slang_gen_function_call_name(A, "*=", oper, NULL);
|
||||
/* The result of this operation should be stored back into child[0] */
|
||||
assert(n->Children[0]->Store);
|
||||
n->Store = n->Children[0]->Store;
|
||||
n = _slang_gen_function_call_name(A, "*=", oper, &oper->children[0]);
|
||||
return n;
|
||||
}
|
||||
case slang_oper_divassign:
|
||||
{
|
||||
slang_ir_node *n;
|
||||
assert(oper->num_children == 2);
|
||||
n = _slang_gen_function_call_name(A, "/=", oper, NULL);
|
||||
/* The result of this operation should be stored back into child[0] */
|
||||
assert(n->Children[0]->Store);
|
||||
n->Store = n->Children[0]->Store;
|
||||
n = _slang_gen_function_call_name(A, "/=", oper, &oper->children[0]);
|
||||
return n;
|
||||
}
|
||||
case slang_oper_asm:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue