diff options
author | Brian <[email protected]> | 2007-12-12 14:55:57 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-12 14:55:57 -0700 |
commit | 20eae595faa20dba8a59d8a4bfd01aa6b458cecd (patch) | |
tree | 3b34a809024e6a3447d94525d7eeef25c6d7f014 /src/mesa/state_tracker/st_format.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_format.h')
-rw-r--r-- | src/mesa/state_tracker/st_format.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_format.h b/src/mesa/state_tracker/st_format.h index ebff7c5b912..c9a11de5043 100644 --- a/src/mesa/state_tracker/st_format.h +++ b/src/mesa/state_tracker/st_format.h @@ -63,9 +63,8 @@ extern enum pipe_format st_mesa_format_to_pipe_format(GLuint mesaFormat); -extern GLuint -st_choose_pipe_format(struct pipe_context *pipe, GLint internalFormat, - GLenum format, GLenum type, uint surfType); +extern enum pipe_format +st_choose_renderbuffer_format(struct pipe_context *pipe, GLint internalFormat); extern const struct gl_texture_format * |