mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens
This commit is contained in:
parent
d280206c7f
commit
dd5a8d234b
2 changed files with 10 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue