From 2d2286d17c78af95c4bb5f56ef1b58a09eef7260 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Thu, 8 Jan 2015 11:31:24 +0100 Subject: st/nine: Fix use of D3DSP_NOSWIZZLE D3DSP_NOSWIZZLE already contains the shift. Detected with Clang. Reviewed-by: Tiziano Bacocco Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 13630f0f55a..2ba625ebf71 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -2778,7 +2778,7 @@ sm1_parse_get_param(struct shader_translator *tx, DWORD *reg, DWORD *rel) *rel = (1 << 31) | ((D3DSPR_ADDR << D3DSP_REGTYPE_SHIFT2) & D3DSP_REGTYPE_MASK2) | ((D3DSPR_ADDR << D3DSP_REGTYPE_SHIFT) & D3DSP_REGTYPE_MASK) | - (D3DSP_NOSWIZZLE << D3DSP_SWIZZLE_SHIFT); + D3DSP_NOSWIZZLE; else *rel = TOKEN_NEXT(tx); } -- cgit v1.2.3