From: Keith Whitwell Date: Sat, 15 Nov 2008 16:53:24 +0000 (+0000) Subject: Merge commit 'origin/master' into gallium-0.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7468765b18be202a64d58b83f6267b6973ea4897;p=mesa.git Merge commit 'origin/master' into gallium-0.2 Conflicts: src/mesa/shader/prog_print.c --- 7468765b18be202a64d58b83f6267b6973ea4897 diff --cc src/mesa/shader/prog_print.c index 22b8f1de3c2,baa4ef85e92..db6eac4fd98 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@@ -358,21 -356,8 +358,21 @@@ _mesa_swizzle_string(GLuint swizzle, GL } +void +_mesa_print_swizzle(GLuint swizzle) +{ + if (swizzle == SWIZZLE_XYZW) { + _mesa_printf(".xyzw\n"); + } + else { + const char *s = _mesa_swizzle_string(swizzle, 0, 0); + _mesa_printf("%s\n", s); + } +} + + - static const char * - writemask_string(GLuint writeMask) + const char * + _mesa_writemask_string(GLuint writeMask) { static char s[10]; GLuint i = 0; diff --cc src/mesa/shader/prog_print.h index 3cdb1b195e0,cd9e388e825..3966909aed0 --- a/src/mesa/shader/prog_print.h +++ b/src/mesa/shader/prog_print.h @@@ -43,9 -43,9 +43,12 @@@ _mesa_condcode_string(GLuint condcode) extern const char * _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended); + const char * + _mesa_writemask_string(GLuint writeMask); + +extern void +_mesa_print_swizzle(GLuint swizzle); + extern void _mesa_print_alu_instruction(const struct prog_instruction *inst, const char *opcode_string, GLuint numRegs);