summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-05-12 15:51:05 -0700
committerMatt Turner <mattst88@gmail.com>2015-05-18 10:11:36 -0700
commit0592ee457dbddd9483e4294097e5d7f2e1c39308 (patch)
tree9e2a5054f3697cc3e67d04864da5c77f82203bfd /src
parent81deefc45ba7b7d3b2b5e7ccf9e1680df6e31e3a (diff)
i965/fs: Add set_sechalf() method.
Used in the next commit. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_ir_fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ir_fs.h b/src/mesa/drivers/dri/i965/brw_ir_fs.h
index 7ac7ff81d20..a79713ce201 100644
--- a/src/mesa/drivers/dri/i965/brw_ir_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_ir_fs.h
@@ -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