[Mesa-dev] [PATCH 07/19] i965/fs: Reorder fs_inst's fields for better packing.

Matt Turner mattst88 at gmail.com
Thu Feb 20 13:41:20 PST 2014


---
 src/mesa/drivers/dri/i965/brw_fs.h | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 7da66ed..b4e69ba 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -192,6 +192,17 @@ public:
 
    fs_reg dst;
    fs_reg src[3];
+
+   /** @{
+    * Annotation for the generated IR.  One of the two can be set.
+    */
+   const void *ir;
+   const char *annotation;
+   /** @} */
+
+   uint32_t texture_offset; /**< Texture offset bitfield */
+   uint32_t offset; /* spill/unspill offset */
+
    bool saturate;
    uint8_t conditional_mod; /**< BRW_CONDITIONAL_* */
 
@@ -203,7 +214,6 @@ public:
    uint8_t mlen; /**< SEND message length */
    uint8_t regs_written; /**< Number of vgrfs written by a SEND message, or 1 */
    int8_t base_mrf; /**< First MRF in the SEND message, if mlen is nonzero. */
-   uint32_t texture_offset; /**< Texture offset bitfield */
    uint8_t sampler;
    uint8_t target; /**< MRT target. */
    bool eot;
@@ -212,14 +222,6 @@ public:
    bool force_uncompressed;
    bool force_sechalf;
    bool force_writemask_all;
-   uint32_t offset; /* spill/unspill offset */
-
-   /** @{
-    * Annotation for the generated IR.  One of the two can be set.
-    */
-   const void *ir;
-   const char *annotation;
-   /** @} */
 };
 
 /**
-- 
1.8.3.2



More information about the mesa-dev mailing list