Mesa (master): mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format.

Chris Forbes chrisf at kemper.freedesktop.org
Thu Nov 7 20:10:17 UTC 2013


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

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Thu Nov  7 22:05:01 2013 +1300

mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

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

diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index dfee6f1..740faa8 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -345,6 +345,11 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)
          return sizeof(GLuint);
       else
          return -1;
+   case GL_UNSIGNED_INT_10F_11F_11F_REV:
+      if (comps == 3)
+         return sizeof(GLuint);
+      else
+         return -1;
    default:
       return -1;
    }




More information about the mesa-commit mailing list