diff options
author | Kenneth Graunke <[email protected]> | 2015-02-19 13:36:07 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-02-19 15:15:46 -0800 |
commit | 75f6ed617fcdf0b28381c59e4d4a3030678d7faa (patch) | |
tree | f5eaa4b55401f1a280db896116b91861574abc18 /src | |
parent | 5cdfa839c26332dc5fc034966fe107d4779a64d7 (diff) |
glsl: Add compute to _mesa_shader_stage_to_string(); use unreachable.
This is basically Ian's review feedback for my patch that added
_mesa_shader_stage_to_abbrev() - it just makes both consistent again.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 2e44dc1567a..9f793138009 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -370,10 +370,10 @@ _mesa_shader_stage_to_string(unsigned stage) case MESA_SHADER_VERTEX: return "vertex"; case MESA_SHADER_FRAGMENT: return "fragment"; case MESA_SHADER_GEOMETRY: return "geometry"; + case MESA_SHADER_COMPUTE: return "compute"; } - assert(!"Should not get here."); - return "unknown"; + unreachable("Unknown shader stage."); } /** |