[Mesa-dev] [PATCH 1/7] st/mesa: add PIPE_FORMAT_R16G16B16A16_UNORM renderbuffer support
Brian Paul
brianp at vmware.com
Mon Mar 11 17:35:25 PDT 2013
To allow rendering in 16-bit/channel RGBA buffers.
---
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 72bc960..87c5b04 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;
--
1.7.3.4
More information about the mesa-dev
mailing list