summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-10-26 08:20:55 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-10-26 14:59:38 -0400
commit56da35ef76b062f2d37f37a4d3d986e333c4954d (patch)
tree402014bfa343f1daeecb7b2ebe425dbd3a57153c /src/mesa/pipe/tgsi
parent61d998c966d10e7a44b06d378c54b5f21ad69b53 (diff)
Fix swizzle fetching in tgsi_util_get_full_src_register_extswizzle. Shorten
the swizzle coding in LLVM compilation using it and fix some warnings.
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_util.c b/src/mesa/pipe/tgsi/exec/tgsi_util.c
index 38d6d6e6bc..67e32ccbd0 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_util.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_util.c
@@ -88,7 +88,7 @@ tgsi_util_get_full_src_register_extswizzle(
if( swizzle <= TGSI_SWIZZLE_W ) {
swizzle = tgsi_util_get_src_register_swizzle(
&reg->SrcRegister,
- swizzle );
+ component );
}
return swizzle;