i965: add struct and SFID for pixel interpolator messages
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 17 Nov 2013 06:32:49 +0000 (19:32 +1300)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Jan 2014 05:55:17 +0000 (21:55 -0800)
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_structs.h

index bcc7d6ad97baa7f388dad7bbf63f77f439843d29..a659c7a435d7307a0fb4d70cf937365f022285a0 100644 (file)
@@ -1098,6 +1098,7 @@ enum brw_message_target {
    GEN6_SFID_DATAPORT_CONSTANT_CACHE = 9,
 
    GEN7_SFID_DATAPORT_DATA_CACHE     = 10,
+   GEN7_SFID_PIXEL_INTERPOLATOR      = 11,
    HSW_SFID_DATAPORT_DATA_CACHE_1    = 12,
 };
 
index d05bf9f96d23c325e009ad48421e04c1cec4c920..9dbc797b8ec7d72b4d1de86733d8239ad00629b0 100644 (file)
@@ -1377,6 +1377,27 @@ struct brw_instruction
         unsigned pad2:2;
         unsigned end_of_thread:1;
       } gen7_dp;
+
+      /**
+       * Message for the Gen7 Pixel Interpolator.
+       *
+       * Defined in the Ivybridge PRM, Volume 4 Part 2,
+       * section 4.1.1.1.
+       */
+      struct {
+         GLuint msg_data:8;
+         GLuint pad1:3;
+         GLuint slot_group:1;
+         GLuint msg_type:2;
+         GLuint interpolation_mode:1;
+         GLuint pad2:1;
+         GLuint simd_mode:1;
+         GLuint pad3:1;
+         GLuint response_length:5;
+         GLuint msg_length:4;
+         GLuint pad4:2;
+         GLuint end_of_thread:1;
+      } gen7_pi;
       /** @} */
 
       struct {