mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
r300/compiler: Don't track readers into an IF block.
This makes rc_get_readers_normal() more conservative than it needs to be, but it fixes some incorrect behavior in the optimization passes.
This commit is contained in:
parent
ad00a92ee7
commit
6b999c89ce
1 changed files with 3 additions and 0 deletions
|
|
@ -624,6 +624,9 @@ void rc_get_readers_normal(
|
|||
data->Abort = 1;
|
||||
return;
|
||||
case RC_OPCODE_IF:
|
||||
/* XXX We can do better here, but this will have to
|
||||
* do until this dataflow analysis is more mature. */
|
||||
data->Abort = 1;
|
||||
branch_depth++;
|
||||
break;
|
||||
case RC_OPCODE_ELSE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue