[Mesa-dev] [PATCH 03/19] i965/fs: Reduce the sizes of some fs_reg members.

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


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

diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index c6f4ffb..38fa34b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -92,7 +92,7 @@ public:
     * Register number.  For MRF, it's the hardware register.  For
     * GRF, it's a virtual register number until register allocation
     */
-   int reg;
+   uint16_t reg;
    /**
     * Offset from the start of the contiguous register block.
     *
@@ -102,7 +102,7 @@ public:
     */
    int reg_offset;
    /** Register type.  BRW_REGISTER_TYPE_* */
-   int type;
+   uint8_t type;
    bool negate;
    bool abs;
    struct brw_reg fixed_hw_reg;
@@ -124,7 +124,7 @@ public:
    int subreg_offset;
 
    /** Register region horizontal stride */
-   int stride;
+   uint8_t stride;
 
    fs_reg *reladdr;
 };
-- 
1.8.3.2



More information about the mesa-dev mailing list