diff options
author | Brian <[email protected]> | 2007-12-07 16:46:30 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-07 16:46:30 -0700 |
commit | 54fc80ab31f89520d3119196bfa9c6332b35fe2f (patch) | |
tree | 5ee522b13e1819884e214b12a555a8ed2ad1727d /src/mesa/pipe/p_winsys.h | |
parent | 6070a0eb2ba9ba29b861153a10e91c5b463a2ffc (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/p_winsys.h')
-rw-r--r-- | src/mesa/pipe/p_winsys.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_winsys.h b/src/mesa/pipe/p_winsys.h index 5adca1d6fd6..438e8bdb63b 100644 --- a/src/mesa/pipe/p_winsys.h +++ b/src/mesa/pipe/p_winsys.h @@ -29,6 +29,8 @@ #define P_WINSYS_H +#include "p_format.h" + /** * \file * This is the interface that Gallium3D requires any window system @@ -90,7 +92,7 @@ struct pipe_winsys /** allocate a new surface (no context dependency) */ struct pipe_surface *(*surface_alloc)(struct pipe_winsys *ws, - unsigned format); + enum pipe_format format); void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s); |