mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 21:40:29 +01:00
i965/fs: Fix the inline nir_op_pack_double optimization
We can only do the optimization if the source *is* SSA. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
e2abe80bee
commit
a4393bd97f
1 changed files with 1 additions and 1 deletions
|
|
@ -1219,7 +1219,7 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr)
|
|||
* the unpack operation.
|
||||
*/
|
||||
for (int i = 0; i < 2; i++) {
|
||||
if (instr->src[i].src.is_ssa)
|
||||
if (!instr->src[i].src.is_ssa)
|
||||
continue;
|
||||
|
||||
const nir_instr *parent_instr = instr->src[i].src.ssa->parent_instr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue