summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_ir_vec4.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-08 12:22:35 -0500
committerJason Ekstrand <[email protected]>2018-10-10 13:13:12 -0500
commit4ba445e0117b29c31b030feb6e0f421a5ceb03e5 (patch)
tree5191e422be4ad6afc639bfffdfbc873c7113407c /src/intel/compiler/brw_ir_vec4.h
parent328d4d080bce128ff422fbfbd7271ef4ede38320 (diff)
intel: Don't propagate conditional modifiers if a UD source is negated
This fixes a bug uncovered by my NIR integer division by constant optimization series. Fixes: 19f9cb72c8b "i965/fs: Add pass to propagate conditional..." Fixes: 627f94b72e0 "i965/vec4: adding vec4_cmod_propagation..." Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_ir_vec4.h')
-rw-r--r--src/intel/compiler/brw_ir_vec4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_ir_vec4.h b/src/intel/compiler/brw_ir_vec4.h
index e401d8b4d16..65b1e4f3b53 100644
--- a/src/intel/compiler/brw_ir_vec4.h
+++ b/src/intel/compiler/brw_ir_vec4.h
@@ -291,6 +291,7 @@ public:
int swizzle, int swizzle_mask);
void reswizzle(int dst_writemask, int swizzle);
bool can_do_source_mods(const struct gen_device_info *devinfo);
+ bool can_do_cmod();
bool can_do_writemask(const struct gen_device_info *devinfo);
bool can_change_types() const;
bool has_source_and_destination_hazard() const;