From dd5a8d234b95c6f85d0a6ecb18db8aadefb71dbd Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 15 Jan 2008 14:18:17 -0700 Subject: Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens --- src/mesa/pipe/p_defines.h | 8 ++++++++ src/mesa/pipe/p_state.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h index c6d9c02bd91..50bea691e71 100644 --- a/src/mesa/pipe/p_defines.h +++ b/src/mesa/pipe/p_defines.h @@ -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 */ diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h index ccd2a5f9e2f..46328d2a8f6 100644 --- a/src/mesa/pipe/p_state.h +++ b/src/mesa/pipe/p_state.h @@ -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 */ -- cgit v1.2.3