tgsi: Fix tgsi_util_get_full_src_register_extswizzle().
authorMichal Krol <michal@tungstengraphics.com>
Wed, 23 Jul 2008 15:52:56 +0000 (17:52 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Wed, 23 Jul 2008 15:53:50 +0000 (17:53 +0200)
src/gallium/auxiliary/tgsi/util/tgsi_util.c

index 10762b6c1a09c6c3892984227b139f83c2c05eff..09486e649e1153d3b1dcae9f3024d7f4b386bb0e 100644 (file)
@@ -119,7 +119,7 @@ tgsi_util_get_full_src_register_extswizzle(
    if( swizzle <= TGSI_SWIZZLE_W ) {
       swizzle = tgsi_util_get_src_register_swizzle(
          &reg->SrcRegister,
-         component );
+         swizzle );
    }
 
    return swizzle;