summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index fd344361d91..7c2055e43e8 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -23,17 +23,19 @@
#ifndef R300_CONTEXT_H
#define R300_CONTEXT_H
+#include "pipe/p_context.h"
+
struct r300_context {
/* Parent class */
struct pipe_context context;
struct amd_winsys* winsys;
struct draw_context* draw;
-}
+};
/* Convenience cast wrapper. */
-static struct r300_context* r300_context(struct pipe_context* pipe) {
- return (struct r300_context*)pipe;
+static struct r300_context* r300_context(struct pipe_context* context) {
+ return (struct r300_context*)context;
}
#endif /* R300_CONTEXT_H */ \ No newline at end of file