i965/fs: Reduce the sizes of some fs_reg members.
authorMatt Turner <mattst88@gmail.com>
Thu, 20 Feb 2014 01:45:56 +0000 (17:45 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 22 Feb 2014 06:51:32 +0000 (22:51 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h

index b1e38b6cc514a6686a474f193e4ebad43ff63469..1981eefb4fa14dd1f171d6d2a2cb35894f7d1b96 100644 (file)
@@ -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;
 };