summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.h
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-08 15:47:23 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:20 -0800
commit3b37cb49b821dd0c59fd5361ada6c0df9ac07db8 (patch)
treea52b04a9df6da65a7dcaaa3333999f171d512594 /src/gallium/drivers/r300/r300_screen.h
parent3e09a07a265d5ee75b110954d160a73d83793c40 (diff)
gallium-r300: Make it build.
Still todo: - Sort out winsys. - Less suckage.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.h')
-rw-r--r--src/gallium/drivers/r300/r300_screen.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h
index aa12c29a99f..36fc5aa67dd 100644
--- a/src/gallium/drivers/r300/r300_screen.h
+++ b/src/gallium/drivers/r300/r300_screen.h
@@ -23,6 +23,11 @@
#ifndef R300_SCREEN_H
#define R300_SCREEN_H
+#include "pipe/p_screen.h"
+#include "util/u_memory.h"
+
+#include "r300_context.h"
+
struct r300_screen {
/* Parent class */
struct pipe_screen screen;
@@ -30,6 +35,14 @@ struct r300_screen {
boolean is_r400;
boolean is_r500;
int pci_id;
+};
+
+/* Convenience cast wrapper. */
+static struct r300_screen* r300_screen(struct pipe_screen* screen) {
+ return (struct r300_screen*)screen;
}
+/* Creates a new r300 screen. */
+struct pipe_screen* r300_create_screen(struct pipe_winsys* winsys, uint pci_id);
+
#endif /* R300_SCREEN_H */