From: Keith Whitwell Date: Wed, 4 May 2005 11:21:25 +0000 (+0000) Subject: Include negate information in disassembly output. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3151b27b0a10c46d25f1c97169f7a2543d869ce0;p=mesa.git Include negate information in disassembly output. --- diff --git a/src/mesa/shader/arbvertparse.c b/src/mesa/shader/arbvertparse.c index 5545aff8b70..92e3bb352e0 100644 --- a/src/mesa/shader/arbvertparse.c +++ b/src/mesa/shader/arbvertparse.c @@ -114,8 +114,10 @@ void _mesa_debug_vp_inst(GLint num, struct vp_instruction *vp) } if (vp[a].SrcReg[0].File != 0xf) { - if (vp[a].SrcReg[0].Swizzle != SWIZZLE_NOOP) - _mesa_printf("%s[%d].%c%c%c%c ", file_string[vp[a].SrcReg[0].File], vp[a].SrcReg[0].Index, + if (vp[a].SrcReg[0].Swizzle != SWIZZLE_NOOP || + vp[a].SrcReg[0].Negate) + _mesa_printf("%s[%d].%s%c%c%c%c ", file_string[vp[a].SrcReg[0].File], vp[a].SrcReg[0].Index, + vp[a].SrcReg[0].Negate ? "-" : "", swz[GET_SWZ(vp[a].SrcReg[0].Swizzle, 0)], swz[GET_SWZ(vp[a].SrcReg[0].Swizzle, 1)], swz[GET_SWZ(vp[a].SrcReg[0].Swizzle, 2)], @@ -125,8 +127,10 @@ void _mesa_debug_vp_inst(GLint num, struct vp_instruction *vp) } if (vp[a].SrcReg[1].File != 0xf) { - if (vp[a].SrcReg[1].Swizzle != SWIZZLE_NOOP) - _mesa_printf("%s[%d].%c%c%c%c ", file_string[vp[a].SrcReg[1].File], vp[a].SrcReg[1].Index, + if (vp[a].SrcReg[1].Swizzle != SWIZZLE_NOOP || + vp[a].SrcReg[1].Negate) + _mesa_printf("%s[%d].%s%c%c%c%c ", file_string[vp[a].SrcReg[1].File], vp[a].SrcReg[1].Index, + vp[a].SrcReg[1].Negate ? "-" : "", swz[GET_SWZ(vp[a].SrcReg[1].Swizzle, 0)], swz[GET_SWZ(vp[a].SrcReg[1].Swizzle, 1)], swz[GET_SWZ(vp[a].SrcReg[1].Swizzle, 2)], @@ -136,8 +140,10 @@ void _mesa_debug_vp_inst(GLint num, struct vp_instruction *vp) } if (vp[a].SrcReg[2].File != 0xf) { - if (vp[a].SrcReg[2].Swizzle != SWIZZLE_NOOP) - _mesa_printf("%s[%d].%c%c%c%c ", file_string[vp[a].SrcReg[2].File], vp[a].SrcReg[2].Index, + if (vp[a].SrcReg[2].Swizzle != SWIZZLE_NOOP || + vp[a].SrcReg[2].Negate) + _mesa_printf("%s[%d].%s%c%c%c%c ", file_string[vp[a].SrcReg[2].File], vp[a].SrcReg[2].Index, + vp[a].SrcReg[2].Negate ? "-" : "", swz[GET_SWZ(vp[a].SrcReg[2].Swizzle, 0)], swz[GET_SWZ(vp[a].SrcReg[2].Swizzle, 1)], swz[GET_SWZ(vp[a].SrcReg[2].Swizzle, 2)],