Mesa (master): i965: add struct and SFID for pixel interpolator messages

Kenneth Graunke kwg at kemper.freedesktop.org
Sun Jan 19 06:03:52 UTC 2014


Module: Mesa
Branch: master
Commit: 45607b5c5ffaa52bffa36993a7d618d71e93304c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=45607b5c5ffaa52bffa36993a7d618d71e93304c

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Sun Nov 17 19:32:49 2013 +1300

i965: add struct and SFID for pixel interpolator messages

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_defines.h |    1 +
 src/mesa/drivers/dri/i965/brw_structs.h |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index bcc7d6a..a659c7a 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -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,
 };
 
diff --git a/src/mesa/drivers/dri/i965/brw_structs.h b/src/mesa/drivers/dri/i965/brw_structs.h
index d05bf9f..9dbc797 100644
--- a/src/mesa/drivers/dri/i965/brw_structs.h
+++ b/src/mesa/drivers/dri/i965/brw_structs.h
@@ -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 {




More information about the mesa-commit mailing list