intel/fs: Don't copy-propagate stride=0 sources into ddx/ddy
[mesa.git] / src / intel / compiler / brw_fs_copy_propagation.cpp
index a33043573a53a23f46b1f3545c660887bf35430a..31e55e64a27bf6fb0b99670e6e0ca15ad8d5ecd7 100644 (file)
@@ -524,7 +524,7 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry)
     */
    const unsigned entry_stride = (entry->src.file == FIXED_GRF ? 1 :
                                   entry->src.stride);
-   if (instruction_requires_packed_data(inst) && entry_stride > 1)
+   if (instruction_requires_packed_data(inst) && entry_stride != 1)
       return false;
 
    /* Bail if the result of composing both strides would exceed the