Fixes assertion failures in three piglit tests on Gen 6 since commit
0087cf23e.
break;
/* fallthrough */
case SHADER_OPCODE_POW:
- /* Allow constant propagation into src1 regardless of generation, and
- * let constant combining promote the constant on Gen < 8.
+ /* Allow constant propagation into src1 (except on Gen 6), and let
+ * constant combining promote the constant on Gen < 8.
+ *
+ * While Gen 6 MATH can take a scalar source, its source and
+ * destination offsets must be equal and we cannot ensure that.
*/
+ if (devinfo->gen == 6)
+ break;
+ /* fallthrough */
case BRW_OPCODE_BFI1:
case BRW_OPCODE_ASR:
case BRW_OPCODE_SHL: