diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-29 17:26:51 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-29 17:59:47 +0100 |
commit | f7cf8b4658aadb0a125f1e1fb9d6cb73d44902b0 (patch) | |
tree | fa581e8f596854edf3b66cd5a1bad0309c44c011 /src/gallium/auxiliary/util/u_caps.h | |
parent | 110a956a645f900e100062fbbe19c5835f9b5476 (diff) |
util: Update caps after helpfull input
In no particular order:
* Make list const
* Add function comments
* Clearly state that demo lists are not complete
* Fix whitespace
* Use __FUNCTION__ instead of __func__
* Add unimplemented check which always fail
Thanks Brian and Keith.
Diffstat (limited to 'src/gallium/auxiliary/util/u_caps.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_caps.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_caps.h b/src/gallium/auxiliary/util/u_caps.h index 649af8ed20c..b1074f9eb21 100644 --- a/src/gallium/auxiliary/util/u_caps.h +++ b/src/gallium/auxiliary/util/u_caps.h @@ -38,6 +38,7 @@ enum u_caps_check_enum { UTIL_CAPS_CHECK_INT, UTIL_CAPS_CHECK_FLOAT, UTIL_CAPS_CHECK_FORMAT, + UTIL_CAPS_CHECK_UNIMPLEMENTED, }; #define UTIL_CHECK_CAP(cap) \ @@ -53,11 +54,14 @@ enum u_caps_check_enum { #define UTIL_CHECK_FORMAT(format) \ UTIL_CAPS_CHECK_FORMAT, PIPE_FORMAT_##format +#define UTIL_CHECK_UNIMPLEMENTED \ + UTIL_CAPS_CHECK_UNIMPLEMENTED + #define UTIL_CHECK_TERMINATE \ UTIL_CAPS_CHECK_TERMINATE -boolean util_check_caps(struct pipe_screen *screen, unsigned *list); -boolean util_check_caps_out(struct pipe_screen *screen, unsigned *list, int *out); -void util_caps_print_debug(struct pipe_screen *screen); +boolean util_check_caps(struct pipe_screen *screen, const unsigned *list); +boolean util_check_caps_out(struct pipe_screen *screen, const unsigned *list, int *out); +void util_caps_demo_print(struct pipe_screen *screen); #endif |