Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.
authorBrian <brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 23:46:30 +0000 (16:46 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 23:46:30 +0000 (16:46 -0700)
commit54fc80ab31f89520d3119196bfa9c6332b35fe2f
tree5ee522b13e1819884e214b12a555a8ed2ad1727d
parent6070a0eb2ba9ba29b861153a10e91c5b463a2ffc
Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.

This makes debugging a _lot_ easier.
In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
19 files changed:
src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
src/mesa/pipe/draw/draw_vertex_fetch.c
src/mesa/pipe/draw/draw_vertex_shader_llvm.c
src/mesa/pipe/i915simple/i915_context.c
src/mesa/pipe/i915simple/i915_state_emit.c
src/mesa/pipe/i915simple/i915_state_sampler.c
src/mesa/pipe/p_context.h
src/mesa/pipe/p_format.h
src/mesa/pipe/p_state.h
src/mesa/pipe/p_winsys.h
src/mesa/pipe/softpipe/sp_context.c
src/mesa/pipe/softpipe/sp_quad_depth_test.c
src/mesa/pipe/softpipe/sp_tile_cache.c
src/mesa/pipe/xlib/xm_winsys.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_format.c
src/mesa/state_tracker/st_format.h