diff options
author | Cooper Yuan <[email protected]> | 2009-10-10 14:41:44 +0800 |
---|---|---|
committer | Cooper Yuan <[email protected]> | 2009-10-10 14:41:44 +0800 |
commit | a74e53ddba246b1f6604c6120b63a923fd9c60d5 (patch) | |
tree | 8962e0c791d22c6b76db8858d613115e67762e59 /src/gallium/drivers/r300/r300_texture.h | |
parent | db828ed7589d0a5687386c4b4268b4e7ff78c866 (diff) |
r300g: add video surface create and destroy functions
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index bd87790bc34..e5182d31b42 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -24,7 +24,7 @@ #define R300_TEXTURE_H #include "pipe/p_screen.h" - +#include "pipe/p_video_state.h" #include "util/u_math.h" #include "r300_context.h" @@ -91,6 +91,18 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format) return 0; } +struct r300_video_surface +{ + struct pipe_video_surface base; + struct pipe_texture *tex; +}; + +static INLINE struct r300_video_surface * +r300_video_surface(struct pipe_video_surface *pvs) +{ + return (struct r300_video_surface *)pvs; +} + #ifndef R300_WINSYS_H boolean r300_get_texture_buffer(struct pipe_texture* texture, |