diff options
author | Jason Ekstrand <[email protected]> | 2017-02-14 23:00:51 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-16 17:28:03 -0800 |
commit | a4393bd97fe62e8299273bae769201c5c9c816ea (patch) | |
tree | e4bf9122796748ca7996861848cfa472e69db094 /src/mesa/drivers/dri/i965 | |
parent | e2abe80beedea9e20326989f8577b43868cda21a (diff) |
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 <[email protected]>
Cc: "13.0 17.0" <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 991c20fad62..94f275189f3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -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; |