summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_tile_cache.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-07 16:46:30 -0700
committerBen Skeggs <skeggsb@gmail.com>2007-12-09 12:05:27 +1100
commit61d1972dd038ba94924a57891408e19d9e5da205 (patch)
tree6aea1528a8f8e7f348e50395a8b1a7aba7bb2d11 /src/mesa/pipe/softpipe/sp_tile_cache.c
parent144b70b0b583892ffa5c96b009ee91b3ccb202a6 (diff)
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.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_tile_cache.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_tile_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tile_cache.c b/src/mesa/pipe/softpipe/sp_tile_cache.c
index be5dd5c289..602b78ebe6 100644
--- a/src/mesa/pipe/softpipe/sp_tile_cache.c
+++ b/src/mesa/pipe/softpipe/sp_tile_cache.c
@@ -174,7 +174,8 @@ is_depth_stencil_surface(struct pipe_surface *ps)
* Set pixels in a tile to the given clear color/value.
*/
static void
-clear_tile(struct softpipe_cached_tile *tile, uint format,
+clear_tile(struct softpipe_cached_tile *tile,
+ enum pipe_format format,
const float clear_value[4])
{
uint i, j;