From: Brian Paul Date: Tue, 12 Mar 2013 00:31:21 +0000 (-0600) Subject: st/mesa: add PIPE_FORMAT_R16G16B16A16_UNORM renderbuffer support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c3668c5a1a441e229fc0388415487aad50fe2ad;p=mesa.git st/mesa: add PIPE_FORMAT_R16G16B16A16_UNORM renderbuffer support To allow rendering in 16-bit/channel RGBA buffers. Reviewed-by: José Fonseca --- 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;