diff options
author | Brian Paul <[email protected]> | 2013-03-11 18:31:21 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-03-12 19:04:42 -0600 |
commit | 3c3668c5a1a441e229fc0388415487aad50fe2ad (patch) | |
tree | 6d48f0b8b9e8e823092b20c38a36c12f99665dbc /src/mesa | |
parent | c526e1728f162a162e71ec48c2c363555a9dc1dc (diff) |
st/mesa: add PIPE_FORMAT_R16G16B16A16_UNORM renderbuffer support
To allow rendering in 16-bit/channel RGBA buffers.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 72bc960b01d..87c5b048c56 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -330,6 +330,9 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw) /* accum buffer */ strb->Base.InternalFormat = GL_RGBA16_SNORM; break; + case PIPE_FORMAT_R16G16B16A16_UNORM: + strb->Base.InternalFormat = GL_RGBA16; + break; case PIPE_FORMAT_R8_UNORM: strb->Base.InternalFormat = GL_R8; break; |