i965: Add a function to translate MESA_SHADER_* into DEBUG_* enums.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Feb 2015 01:31:29 +0000 (17:31 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Feb 2015 23:15:45 +0000 (15:15 -0800)
commit7c891e8ddd41a77ccdc804ce938f2a1ed46e97e8
tree684d510e5cb1381e849f2f0fbbaf1bd4af6f6658
parent7555d1bafb089bc5130f86602a23725e184c490e
i965: Add a function to translate MESA_SHADER_* into DEBUG_* enums.

When compiling, we have a gl_shader_stage (MESA_SHADER_*) enum, and want
to know whether debugging is enabled for that stage.  This allows us to
easily translate it into the corresponding debug flag.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h