i965: Don't bother setting regioning on immediates.
authorMatt Turner <mattst88@gmail.com>
Mon, 16 Nov 2015 17:28:02 +0000 (09:28 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 21 Nov 2015 01:39:33 +0000 (17:39 -0800)
The region fields are unioned with the immediate storage.

src/mesa/drivers/dri/i965/brw_reg.h

index e34e7ea0a529fe32117647354e9bce9e05ca29e8..15de93aa8add3b1535b00c6b438932aef0d0d8f4 100644 (file)
@@ -618,9 +618,6 @@ static inline struct brw_reg
 brw_imm_v(unsigned v)
 {
    struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_V);
-   imm.vstride = BRW_VERTICAL_STRIDE_0;
-   imm.width = BRW_WIDTH_8;
-   imm.hstride = BRW_HORIZONTAL_STRIDE_1;
    imm.ud = v;
    return imm;
 }
@@ -630,9 +627,6 @@ static inline struct brw_reg
 brw_imm_vf(unsigned v)
 {
    struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_VF);
-   imm.vstride = BRW_VERTICAL_STRIDE_0;
-   imm.width = BRW_WIDTH_4;
-   imm.hstride = BRW_HORIZONTAL_STRIDE_1;
    imm.ud = v;
    return imm;
 }