From: Axel Davy Date: Thu, 8 Jan 2015 10:31:24 +0000 (+0100) Subject: st/nine: Fix use of D3DSP_NOSWIZZLE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d2286d17c78af95c4bb5f56ef1b58a09eef7260;p=mesa.git 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 --- 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); }