Mesa (master): mesa: Add missing _mesa_sizeof_glsl_type() for UNSIGNED_INT.

Eric Anholt anholt at kemper.freedesktop.org
Wed Sep 28 19:15:02 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Sep 27 14:36:07 2011 -0700

mesa: Add missing _mesa_sizeof_glsl_type() for UNSIGNED_INT.

Somehow we managed to get the unsigned int vectors, but not scalar.
Fixes _mesa_problem complaints in piglit's uint tests.

Reviewed-by: Chad Versace <chad at chad-versace.us>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

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

diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 74997ea..3ce14d1 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -137,6 +137,7 @@ _mesa_sizeof_glsl_type(GLenum type)
    switch (type) {
    case GL_FLOAT:
    case GL_INT:
+   case GL_UNSIGNED_INT:
    case GL_BOOL:
    case GL_SAMPLER_1D:
    case GL_SAMPLER_2D:




More information about the mesa-commit mailing list