OSDN Git Service

mesa/cs: Add a MESA_SHADER_COMPUTE stage and update switch statements.
authorPaul Berry <stereotype441@gmail.com>
Tue, 7 Jan 2014 04:06:05 +0000 (20:06 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 5 Feb 2014 17:00:34 +0000 (09:00 -0800)
commitc61ec8d8e34e9bf30b3c4c84afa08f0a5b66b932
treef660a11f655b3f456e40e0374c7048f105718197
parent28e526d5580739e8b4098cd08c644b9157fdc94c
mesa/cs: Add a MESA_SHADER_COMPUTE stage and update switch statements.

This patch adds MESA_SHADER_COMPUTE to the gl_shader_stage enum.
Also, where it is trivial to do so, it adds a compute shader case to
switch statements that switch based on the type of shader.  This
avoids "unhandled switch case" compiler warnings.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/ast_to_hir.cpp
src/glsl/builtin_variables.cpp
src/glsl/standalone_scaffolding.h
src/mesa/main/context.c
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c
src/mesa/main/shaderobj.h
src/mesa/program/prog_print.c
src/mesa/program/program.h