GL_DEPTH_COMPONENT and GL_STENCIL_INDEX are simple array formats of the
indiciated types, but were absent from the get_swizzle_from_format()
table causing them to be neglect and triggering
unreachable("Unsupported format").Signed-off-by: Chris Wilson <[email protected]> --- src/mesa/main/glformats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index c3fd734..71f43ec 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -2623,6 +2623,8 @@ get_swizzle_from_gl_format(GLenum format, uint8_t *swizzle) set_swizzle(swizzle, 0, 0, 0, 5); return true; case GL_INTENSITY: + case GL_DEPTH_COMPONENT: + case GL_STENCIL_INDEX: set_swizzle(swizzle, 0, 0, 0, 0); return true; default: -- 2.5.0 _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
