Mesa (master): mesa: Advertise EXT_float_blend in ES 3.0+ contexts.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 12 18:57:48 UTC 2019


Module: Mesa
Branch: master
Commit: 5a006b026de5e1a26d1de5ca635773658846ce39
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a006b026de5e1a26d1de5ca635773658846ce39

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Thu Feb  7 21:58:57 2019 -0800

mesa: Advertise EXT_float_blend in ES 3.0+ contexts.

This extension simply drops a draw time restriction:

    "Furthermore, an INVALID_OPERATION error is generated by
     DrawArrays and the other drawing commands defined in section
     2.8.3 (10.5 in ES 3.1) if blending is enabled (see below) and
     any draw buffer has 32-bit floating-point format components."

We never correctly enforced this restriction anyway, so we were
basically already implementing it.  We just need to advertise it
for our behavior to be correct.

The extension requires EXT_color_buffer_float, but we already enable
that via dummy_true.  So we can dummy_true this one as well.

Found while debugging WebGL conformance tests.  Does not fix any.

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

---

 src/mesa/main/extensions_table.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index 4ae5ab97fb..0d6bb452ff 100644
--- a/src/mesa/main/extensions_table.h
+++ b/src/mesa/main/extensions_table.h
@@ -226,6 +226,7 @@ EXT(EXT_draw_buffers_indexed                , ARB_draw_buffers_blend
 EXT(EXT_draw_elements_base_vertex           , ARB_draw_elements_base_vertex          ,  x ,  x ,  x , ES2, 2014)
 EXT(EXT_draw_instanced                      , ARB_draw_instanced                     , GLL, GLC,  x ,  x , 2006)
 EXT(EXT_draw_range_elements                 , dummy_true                             , GLL,  x ,  x ,  x , 1997)
+EXT(EXT_float_blend                         , dummy_true                             ,  x ,  x ,  x ,  30, 2015)
 EXT(EXT_fog_coord                           , dummy_true                             , GLL,  x ,  x ,  x , 1999)
 EXT(EXT_frag_depth                          , dummy_true                             ,  x ,  x ,  x , ES2, 2010)
 EXT(EXT_framebuffer_blit                    , dummy_true                             , GLL, GLC,  x ,  x , 2005)




More information about the mesa-commit mailing list