st/mesa: add PIPE_FORMAT_R16G16B16A16_UNORM renderbuffer support
authorBrian Paul <brianp@vmware.com>
Tue, 12 Mar 2013 00:31:21 +0000 (18:31 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 13 Mar 2013 01:04:42 +0000 (19:04 -0600)
To allow rendering in 16-bit/channel RGBA buffers.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c

index 72bc960b01dafcace63b7814ee9be182414d0eaf..87c5b048c564fbecc16fad97b8adad74a3bc3d90 100644 (file)
@@ -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;