struct pipe_buffer;
struct pipe_texture;
struct pipe_surface;
-struct pipe_video_surface;
struct pipe_transfer;
void (*buffer_destroy)( struct pipe_buffer *buf );
- /**
- * Create a video surface suitable for use as a decoding target by the
- * driver's pipe_video_context.
- */
- struct pipe_video_surface*
- (*video_surface_create)( struct pipe_screen *screen,
- enum pipe_video_chroma_format chroma_format,
- unsigned width, unsigned height );
-
- void (*video_surface_destroy)( struct pipe_video_surface *vsfc );
-
/**
* Do any special operations to ensure buffer size is correct
*/
return false;
*backbuffer = vpipe->screen->get_tex_surface(vpipe->screen, tex, 0, 0, 0,
- PIPE_BUFFER_USAGE_GPU_READ |
- PIPE_BUFFER_USAGE_GPU_WRITE);
+ PIPE_BUFFER_USAGE_GPU_READ_WRITE);
pipe_texture_reference(&tex, NULL);
if (!*backbuffer)