Mesa (master): i965/fs: Reorder fs_inst's fields for better packing.
Matt Turner
mattst88 at kemper.freedesktop.org
Sat Feb 22 06:50:00 UTC 2014
Module: Mesa
Branch: master
Commit: d91035a8f6b6185a8966c48f76e8bc100adb7774
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d91035a8f6b6185a8966c48f76e8bc100adb7774
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Feb 19 17:22:55 2014 -0800
i965/fs: Reorder fs_inst's fields for better packing.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
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 3c47683..6fcdb12 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;
- /** @} */
};
/**
More information about the mesa-commit
mailing list