Mesa (floating): mesa/st: expose ARB_color_buffer_float if unclamping is supported

Luca Barbieri lb at kemper.freedesktop.org
Fri Aug 27 17:25:20 UTC 2010


Module: Mesa
Branch: floating
Commit: b019e4f5b01970805a853a57a1ed6698075c3dd7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b019e4f5b01970805a853a57a1ed6698075c3dd7

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Tue Aug 24 21:56:37 2010 +0200

mesa/st: expose ARB_color_buffer_float if unclamping is supported

---

 src/mesa/state_tracker/st_extensions.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index cf95610..fad802d 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -412,4 +412,11 @@ void st_init_extensions(struct st_context *st)
    if (screen->get_param(screen, PIPE_CAP_DEPTH_CLAMP)) {
       ctx->Extensions.ARB_depth_clamp = GL_TRUE;
    }
+
+   /* this extension does not actually require support of floating point
+    * render targets, just clamping controls
+    */
+   if(screen->get_param(screen, PIPE_CAP_UNCLAMPED_FRAGMENT_COLOR)
+         && screen->get_param(screen, PIPE_CAP_UNCLAMPED_VERTEX_COLOR))
+      ctx->Extensions.ARB_color_buffer_float = GL_TRUE;
 }




More information about the mesa-commit mailing list