glx: Remove unused debugging printfs

There's better ways to do that, if that's what you need.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10381>
This commit is contained in:
Adam Jackson
2021-04-19 22:35:43 -04:00
committed by Marge Bot
parent 70f66bb5ea
commit bb56fce8e3
-31
View File
@@ -72,10 +72,6 @@
#define __GLX_TOTAL_CONFIG \
(__GLX_MIN_CONFIG_PROPS + 2 * __GLX_EXT_CONFIG_PROPS)
#ifdef DEBUG
void __glXDumpDrawBuffer(struct glx_context * ctx);
#endif
_X_HIDDEN void
glx_message(int level, const char *f, ...)
{
@@ -1140,30 +1136,3 @@ __glXSendLargeCommand(struct glx_context * ctx,
assert(dataLen <= maxSize);
__glXSendLargeChunk(ctx, requestNumber, totalRequests, data, dataLen);
}
/************************************************************************/
#ifdef DEBUG
_X_HIDDEN void
__glXDumpDrawBuffer(struct glx_context * ctx)
{
GLubyte *p = ctx->buf;
GLubyte *end = ctx->pc;
GLushort opcode, length;
while (p < end) {
/* Fetch opcode */
opcode = *((GLushort *) p);
length = *((GLushort *) (p + 2));
printf("%2x: %5d: ", opcode, length);
length -= 4;
p += 4;
while (length > 0) {
printf("%08x ", *((unsigned *) p));
p += 4;
length -= 4;
}
printf("\n");
}
}
#endif