i965: Unhardcode a few more stage names and abbreviations.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 12:37:43 +0000 (05:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Apr 2015 18:49:50 +0000 (11:49 -0700)
commit1ac7db07b363207e8ded9259f84bbcaa084b8667
tree998d2f7dcd333ed3cbee7f047cb0b7b06b774580
parent1db5d3c19ee8d91686dfe3c1927a3e2dfa83830c
i965: Unhardcode a few more stage names and abbreviations.

The stage_abbrev and stage_name fields in backend_visitor provide what
we need without any additional effort.  It also means we'll get the
right names for compute shaders, SIMD8 geometry shaders, and both kinds
of tessellation shaders.

This does unfortunately change the capitalization of the stage
abbreviation in the INTEL_DEBUG=optimizer output filenames.  It doesn't
seem worth adding code to handle, though.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp