summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_texture.h
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2009-09-27 19:49:06 -0400
committerYounes Manton <[email protected]>2009-09-27 19:49:06 -0400
commitf547472bfa0a797adacc2a7688b4c1ba65381a80 (patch)
treedf0070c8a239b105c512fa8cf24e8b776523558a /src/gallium/drivers/softpipe/sp_texture.h
parentda793b743462e84e3bca7a0ed7f24b4c942e0834 (diff)
g3dvl: pipe_video_context interface, softpipe impl, auxiliary libs
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_texture.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.h b/src/gallium/drivers/softpipe/sp_texture.h
index 2537ab6a40d..2ef64e1e7c3 100644
--- a/src/gallium/drivers/softpipe/sp_texture.h
+++ b/src/gallium/drivers/softpipe/sp_texture.h
@@ -30,6 +30,7 @@
#include "pipe/p_state.h"
+#include "pipe/p_video_state.h"
struct pipe_context;
@@ -62,6 +63,15 @@ struct softpipe_transfer
unsigned long offset;
};
+struct softpipe_video_surface
+{
+ struct pipe_video_surface base;
+
+ /* The data is held here:
+ */
+ struct pipe_texture *tex;
+};
+
/** cast wrappers */
static INLINE struct softpipe_texture *
@@ -76,6 +86,12 @@ softpipe_transfer(struct pipe_transfer *pt)
return (struct softpipe_transfer *) pt;
}
+static INLINE struct softpipe_video_surface *
+softpipe_video_surface(struct pipe_video_surface *pvs)
+{
+ return (struct softpipe_video_surface *) pvs;
+}
+
extern void
softpipe_init_screen_texture_funcs(struct pipe_screen *screen);