i965: Consolidate is_3src() functions.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_eu.h
index 0ac1ad9378bba242269b165f21aad8ed4bd70193..1345db77c80faabe0bd4bf75e24734a47019e588 100644 (file)
@@ -533,6 +533,12 @@ next_offset(const struct brw_device_info *devinfo, void *store, int offset)
       return offset + 16;
 }
 
+static inline bool
+is_3src(enum opcode opcode)
+{
+   return opcode_descs[opcode].nsrc == 3;
+}
+
 #ifdef __cplusplus
 }
 #endif