softpipe: fix depth sampling for linear vs nearest.
[mesa.git] / src / gallium / drivers / galahad / glhd_context.h
index b316ec32b16560aa9f9eac51de721ece131ecf7c..4e71753ac3708b822a146b1cf0f4ff7ae998b7a5 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef GLHD_CONTEXT_H
 #define GLHD_CONTEXT_H
 
+#include <stdio.h>
+
 #include "pipe/p_state.h"
 #include "pipe/p_context.h"
 
@@ -49,4 +51,14 @@ galahad_context(struct pipe_context *pipe)
    return (struct galahad_context *)pipe;
 }
 
+#define glhd_warn(...) \
+do { \
+    fprintf(stderr, "galahad: %s: ", __FUNCTION__); \
+    fprintf(stderr, __VA_ARGS__); \
+    fprintf(stderr, "\n"); \
+} while (0)
+
+#define glhd_error(...) \
+    glhd_warn(__VA_ARGS__);
+
 #endif /* GLHD_CONTEXT_H */