i965: Add message descriptor bit definitions for pixel interpolator
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 12 Jul 2014 01:21:01 +0000 (13:21 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 12 Jul 2014 22:01:13 +0000 (10:01 +1200)
These got lost in the big brw_inst shakeup.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_inst.h

index 0dadcb3e37a411668d683595fa0fcec31681c2ac..e528232815b2b908845315cc23d26f7b04cff0e4 100644 (file)
@@ -1295,6 +1295,11 @@ enum brw_message_target {
                                                                (1 << 17))
 #define GEN7_DATAPORT_SCRATCH_NUM_REGS_SHIFT                        12
 
+#define GEN7_PIXEL_INTERPOLATOR_LOC_SHARED_OFFSET     0
+#define GEN7_PIXEL_INTERPOLATOR_LOC_SAMPLE            1
+#define GEN7_PIXEL_INTERPOLATOR_LOC_CENTROID          2
+#define GEN7_PIXEL_INTERPOLATOR_LOC_PER_SLOT_OFFSET   3
+
 /* HSW */
 #define HSW_DATAPORT_DC_PORT0_OWORD_BLOCK_READ                      0
 #define HSW_DATAPORT_DC_PORT0_UNALIGNED_OWORD_BLOCK_READ            1
index ac00fd4ee1fb682a927e43f5cad1af0569953dda..e880c9f497e87ffabbd020ed43f7881dab6926b7 100644 (file)
@@ -526,6 +526,17 @@ F(ts_request_type,     MD( 1),  MD( 1))
 F(ts_opcode,           MD( 0),  MD( 0))
 /** @} */
 
+/**
+ * Pixel Interpolator message function control bits:
+ *  @{
+ */
+F(pi_simd_mode,      MD(16),  MD(16))
+F(pi_nopersp,        MD(14),  MD(14))
+F(pi_message_type,   MD(13),  MD(12))
+F(pi_slot_group,     MD(11),  MD(11))
+F(pi_message_data,   MD(7),   MD(0))
+/** @} */
+
 /**
  * Immediates:
  *  @{