Mesa (master): mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts

Ian Romanick idr at kemper.freedesktop.org
Sat Aug 25 02:15:06 UTC 2012


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Jul 25 14:46:54 2012 -0700

mesa/es: Disallow BGRA vertex arrays in ES or ES2 contexts

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/varray.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 54fe073..b1d65ed 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -150,6 +150,11 @@ update_array(struct gl_context *ctx,
                              | UNSIGNED_INT_2_10_10_10_REV_BIT
                              | INT_2_10_10_10_REV_BIT);
       }
+
+      /* BGRA ordering is not supported in ES contexts.
+       */
+      if (sizeMax == BGRA_OR_4)
+         sizeMax = 4;
    } else {
       legalTypesMask &= ~FIXED_ES_BIT;
 




More information about the mesa-commit mailing list