From: Matt Turner Date: Thu, 20 Feb 2014 01:22:55 +0000 (-0800) Subject: i965/fs: Reorder fs_inst's fields for better packing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d91035a8f6b6185a8966c48f76e8bc100adb7774;p=mesa.git i965/fs: Reorder fs_inst's fields for better packing. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 3c47683161d..6fcdb1281b9 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -207,6 +207,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_* */ @@ -218,7 +229,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; @@ -227,14 +237,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; - /** @} */ }; /**