mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
intel/compiler: fix lower conversions to account for predication
The pass can create a temporary result for the instruction and then moves from it to the original destination, however, if the original instruction was predicated, the mov has to be predicated as well. Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
This commit is contained in:
parent
df679b1643
commit
615aaedb93
1 changed files with 4 additions and 1 deletions
|
|
@ -98,7 +98,10 @@ fs_visitor::lower_conversions()
|
|||
* size_written accordingly.
|
||||
*/
|
||||
inst->size_written = inst->dst.component_size(inst->exec_size);
|
||||
ibld.at(block, inst->next).MOV(dst, strided_temp)->saturate = saturate;
|
||||
|
||||
fs_inst *mov = ibld.at(block, inst->next).MOV(dst, strided_temp);
|
||||
mov->saturate = saturate;
|
||||
mov->predicate = inst->predicate;
|
||||
|
||||
progress = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue