diff options
author | Brian Paul <[email protected]> | 2009-01-06 08:15:54 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-06 08:15:54 -0700 |
commit | 374cf77b2f0f13f9380fb0c9d804222a83bdc2e0 (patch) | |
tree | 39cfbbcbbbdc9b2d64e4ad134472cf747101dc7b /src/mesa/shader/slang/slang_emit.c | |
parent | 52d5d25537a9291f7d247211d2881ed56edaca94 (diff) | |
parent | a8ee35c1c59c23938e0a18b163515acc892ed407 (diff) |
Merge commit 'origin/master' into gallium-0.2
Conflicts:
src/mesa/drivers/dri/common/dri_util.c
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index b7a3cfb6177..1c0a7bbbd6e 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -310,24 +310,22 @@ storage_to_dst_reg(struct prog_dst_register *dst, const slang_ir_storage *st) dst->WriteMask = swizzle_to_writemask(swizzle); } else { - GLuint writemask; switch (size) { case 1: - writemask = WRITEMASK_X << GET_SWZ(st->Swizzle, 0); + dst->WriteMask = WRITEMASK_X << GET_SWZ(st->Swizzle, 0); break; case 2: - writemask = WRITEMASK_XY; + dst->WriteMask = WRITEMASK_XY; break; case 3: - writemask = WRITEMASK_XYZ; + dst->WriteMask = WRITEMASK_XYZ; break; case 4: - writemask = WRITEMASK_XYZW; + dst->WriteMask = WRITEMASK_XYZW; break; default: ; /* error would have been caught above */ } - dst->WriteMask = writemask; } dst->RelAddr = relAddr; |