summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.h
diff options
context:
space:
mode:
authorJoakim Sindholt <[email protected]>2009-02-18 20:32:40 +0100
committerMichel Dänzer <[email protected]>2009-02-18 23:23:30 +0100
commit310ea0354c75be693874bd63b5508eb7b3107f27 (patch)
tree1b9b1bb631663e6731666c09ef093f16fa94b5f0 /src/gallium/drivers/r300/r300_screen.h
parentdac19f17f360b730a0e6d651ef2e5b03c59b9b53 (diff)
r300-gallium: implement simple pipe_transfer Basically make the driver compile and behave like it did before the gallium-texture-transfer merge
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.h')
-rw-r--r--src/gallium/drivers/r300/r300_screen.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h
index 2e25f61dbf1..6c845144cb3 100644
--- a/src/gallium/drivers/r300/r300_screen.h
+++ b/src/gallium/drivers/r300/r300_screen.h
@@ -40,11 +40,26 @@ struct r300_screen {
struct r300_capabilities* caps;
};
+struct r300_transfer {
+ /* Parent class */
+ struct pipe_transfer transfer;
+
+ /* Offset from start of buffer. */
+ unsigned offset;
+};
+
/* Convenience cast wrapper. */
static struct r300_screen* r300_screen(struct pipe_screen* screen) {
return (struct r300_screen*)screen;
}
+/* Convenience cast wrapper. */
+static INLINE struct r300_transfer*
+r300_transfer(struct pipe_transfer* transfer)
+{
+ return (struct r300_transfer*)transfer;
+}
+
/* Creates a new r300 screen. */
struct pipe_screen* r300_create_screen(struct pipe_winsys* winsys,
struct r300_winsys* r300_winsys);