i965/fs: Add set_sechalf() method.
authorMatt Turner <mattst88@gmail.com>
Tue, 12 May 2015 22:51:05 +0000 (15:51 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 18 May 2015 17:11:36 +0000 (10:11 -0700)
Used in the next commit.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_ir_fs.h

index 7ac7ff8..a79713c 100644 (file)
@@ -261,4 +261,14 @@ public:
    bool pi_noperspective:1;   /**< Pixel interpolator noperspective flag */
 };
 
+/**
+ * Set second-half quarter control on \p inst.
+ */
+static inline fs_inst *
+set_sechalf(fs_inst *inst)
+{
+   inst->force_sechalf = true;
+   return inst;
+}
+
 #endif