diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-12 14:55:57 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-12 14:55:57 -0700 |
commit | 20eae595faa20dba8a59d8a4bfd01aa6b458cecd (patch) | |
tree | 3b34a809024e6a3447d94525d7eeef25c6d7f014 /src/mesa/state_tracker/st_cb_fbo.h | |
parent | a51d0e419a285c5445061a38fdaf3aca02ad2c3c (diff) |
Re-org of st_create_framebuffer() and renderbuffer format selection.
st_create_framebuffer() now takes pipe_formats for the color, depth, stencil
buffers.
This avoids a round-about chain of calls to pipe->is_format_supported() for
window renderbuffers (their format never changes).
Renderbuffer format selection code in st_format.c is simpler now too.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_fbo.h')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.h b/src/mesa/state_tracker/st_cb_fbo.h index bd85bfc549..21e531d1d0 100644 --- a/src/mesa/state_tracker/st_cb_fbo.h +++ b/src/mesa/state_tracker/st_cb_fbo.h @@ -39,7 +39,7 @@ struct st_renderbuffer { struct gl_renderbuffer Base; struct pipe_surface *surface; - GLboolean screenSurface; /**< A front/back colorbuffer? */ + enum pipe_format format; /** preferred format, or PIPE_FORMAT_NONE */ }; @@ -51,8 +51,7 @@ st_renderbuffer(struct gl_renderbuffer *rb) extern struct gl_renderbuffer * -st_new_renderbuffer_fb(GLenum intFormat, GLboolean screen_surface); - +st_new_renderbuffer_fb(enum pipe_format format); extern void st_init_fbo_functions(struct dd_function_table *functions); |