Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens

This commit is contained in:
Brian 2008-01-15 14:18:17 -07:00
parent d280206c7f
commit dd5a8d234b
2 changed files with 10 additions and 0 deletions

View file

@ -169,6 +169,14 @@ enum pipe_texture_target {
#define PIPE_SURFACE 2 /**< user-created surfaces */ #define PIPE_SURFACE 2 /**< user-created surfaces */
/**
* Surface status
*/
#define PIPE_SURFACE_STATUS_UNDEFINED 0
#define PIPE_SURFACE_STATUS_DEFINED 1
#define PIPE_SURFACE_STATUS_CLEAR 2
/** /**
* Buffer access flags * Buffer access flags
*/ */

View file

@ -243,6 +243,8 @@ struct pipe_surface
{ {
struct pipe_buffer_handle *buffer; /**< driver private buffer handle */ struct pipe_buffer_handle *buffer; /**< driver private buffer handle */
enum pipe_format format; /**< PIPE_FORMAT_x */ enum pipe_format format; /**< PIPE_FORMAT_x */
unsigned status; /**< PIPE_SURFACE_STATUS_x */
unsigned clear_value; /**< may be temporary */
unsigned cpp; /**< bytes per pixel */ unsigned cpp; /**< bytes per pixel */
unsigned width, height; unsigned width, height;
unsigned pitch; /**< in pixels */ unsigned pitch; /**< in pixels */