mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01:00
i965/fs: Fix off-by-one in saturate propagation.
ip needs to be initialized to start_ip - 1, since the first thing in the main loop is ip++. Otherwise we would incorrectly propagate the saturate from the mov to the mad: mad a, b, c, d mov.sat x, a add y, z, a Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
20dee82a75
commit
86ae6f477d
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ static bool
|
|||
opt_saturate_propagation_local(fs_visitor *v, bblock_t *block)
|
||||
{
|
||||
bool progress = false;
|
||||
int ip = block->start_ip;
|
||||
int ip = block->start_ip - 1;
|
||||
|
||||
for (fs_inst *inst = (fs_inst *)block->start;
|
||||
inst != block->end->next;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue