mesa: remove unused ureg::abs field
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 22:01:12 +0000 (16:01 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 23:39:32 +0000 (17:39 -0600)
src/mesa/main/texenvprogram.c

index 869d8d026be6f19eddf9cced7a1f974d328b69fd..8c588538b11082af2b24f539a7deb51738a5cec9 100644 (file)
@@ -457,9 +457,8 @@ struct ureg {
    GLuint file:4;
    GLuint idx:8;
    GLuint negatebase:1;
-   GLuint abs:1;
    GLuint swz:12;
-   GLuint pad:6;
+   GLuint pad:7;
 };
 
 static const struct ureg undef = { 
@@ -467,7 +466,6 @@ static const struct ureg undef = {
    ~0,
    0,
    0,
-   0,
    0
 };
 
@@ -513,7 +511,6 @@ static struct ureg make_ureg(GLuint file, GLuint idx)
    reg.file = file;
    reg.idx = idx;
    reg.negatebase = 0;
-   reg.abs = 0;
    reg.swz = SWIZZLE_NOOP;
    reg.pad = 0;
    return reg;
@@ -679,7 +676,7 @@ static void emit_arg( struct prog_src_register *reg,
    reg->Index = ureg.idx;
    reg->Swizzle = ureg.swz;
    reg->Negate = ureg.negatebase ? NEGATE_XYZW : NEGATE_NONE;
-   reg->Abs = ureg.abs;
+   reg->Abs = GL_FALSE;
 }
 
 static void emit_dst( struct prog_dst_register *dst,