mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
r300: exit early in presubtract is not supported
Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24830>
This commit is contained in:
parent
24d35a56d9
commit
3b74360338
1 changed files with 10 additions and 7 deletions
|
|
@ -809,15 +809,18 @@ static int peephole_mul_omod(
|
|||
*/
|
||||
static int peephole(struct radeon_compiler * c, struct rc_instruction * inst)
|
||||
{
|
||||
switch(inst->U.I.Opcode){
|
||||
if (!c->has_presub)
|
||||
return 0;
|
||||
|
||||
switch(inst->U.I.Opcode) {
|
||||
case RC_OPCODE_ADD:
|
||||
if (c->has_presub) {
|
||||
if(peephole_add_presub_inv(c, inst))
|
||||
return 1;
|
||||
if(peephole_add_presub_add(c, inst))
|
||||
return 1;
|
||||
}
|
||||
{
|
||||
if (peephole_add_presub_inv(c, inst))
|
||||
return 1;
|
||||
if (peephole_add_presub_add(c, inst))
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue