summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/remote/debug.c3
-rw-r--r--src/gallium/drivers/remote/remote_comms.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/remote/debug.c b/src/gallium/drivers/remote/debug.c
index 06c7cddbae..ccf9f7d68c 100644
--- a/src/gallium/drivers/remote/debug.c
+++ b/src/gallium/drivers/remote/debug.c
@@ -1,6 +1,7 @@
#include "remote_messages.h"
+#ifdef CS_DEBUG
char* optotext(unsigned opcode) {
switch(opcode) {
@@ -327,4 +328,4 @@ char* optotext(unsigned opcode) {
return "*** UNRECOGNISED OPCODE ***";
}
}
-
+#endif // CS_DEBUG
diff --git a/src/gallium/drivers/remote/remote_comms.c b/src/gallium/drivers/remote/remote_comms.c
index fb788c328f..7a0f417dab 100644
--- a/src/gallium/drivers/remote/remote_comms.c
+++ b/src/gallium/drivers/remote/remote_comms.c
@@ -129,6 +129,7 @@ void* allocate_message_memory(size_t bytes) {
}
+#ifdef DEBUG_RING_WRITE
static void debug_print_bytes(char* bytes, int n) {
for(int i = 0; i < n; i++) {
@@ -140,6 +141,7 @@ static void debug_print_bytes(char* bytes, int n) {
printf("\n");
}
+#endif // DEBUG_RING_WRITE
static int sendsome(uint32_t* readoff, uint32_t* writeoff, uint32_t bufsize, char* writebuf, char* data, int length) {