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 7ac7ff81d202b8787efccef1b9e295ca0820b260..a79713ce2014a717c24cedce0336ba7975cc1b71 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