[965] Replace XXX comment about constant swizzle with an assert.
authorEric Anholt <eric@anholt.net>
Fri, 1 Feb 2008 00:16:29 +0000 (16:16 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 2 Feb 2008 00:02:37 +0000 (16:02 -0800)
src/mesa/drivers/dri/i965/brw_vs_tnl.c
src/mesa/drivers/dri/i965/brw_wm_fp.c

index 73e56a58cf5490ae852303997f5723a04cdfcba7..b8231fc1d2ffc0b193a78efbbf4e358b318c835b 100644 (file)
@@ -404,7 +404,7 @@ static struct ureg register_const4f( struct tnl_program *p,
    values[3] = s3;
    idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values, 4,
                                      &swizzle);
-   /* XXX what about swizzle? */
+   assert(swizzle == SWIZZLE_NOOP); /* Need to handle swizzle in reg setup */
    return make_ureg(PROGRAM_STATE_VAR, idx);
 }
 
index 1b26005169a9ec5cc4c3a1b1ac101078ea1fbb75..55527373bcf8549bc99d7c37408e7ddbc0c2e508 100644 (file)
@@ -464,7 +464,7 @@ static struct prog_src_register search_or_add_const4f( struct brw_wm_compile *c,
    }
    
    idx = _mesa_add_unnamed_constant( paramList, values, 4, &swizzle );
-   /* XXX what about swizzle? */
+   assert(swizzle == SWIZZLE_NOOP); /* Need to handle swizzle in reg setup */
    return src_reg(PROGRAM_STATE_VAR, idx);
 }