Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens
This commit is contained in:
@@ -169,6 +169,14 @@ enum pipe_texture_target {
|
||||
#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
|
||||
*/
|
||||
|
||||
@@ -243,6 +243,8 @@ struct pipe_surface
|
||||
{
|
||||
struct pipe_buffer_handle *buffer; /**< driver private buffer handle */
|
||||
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 width, height;
|
||||
unsigned pitch; /**< in pixels */
|
||||
|
||||
Reference in New Issue
Block a user