diff options
author | José Fonseca <[email protected]> | 2009-06-15 19:22:35 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-15 19:22:35 +0100 |
commit | 227d233cffea9908e72c700441ad206635305077 (patch) | |
tree | 25cc6b93e75f7308ca9e9494d09f74eaee5af4fa /src/gallium | |
parent | 7585cbffe0ec8873a1e8d966f870aa1052943899 (diff) |
python/tests: Add is_depth_stencil_format utility function.
Diffstat (limited to 'src/gallium')
-rwxr-xr-x | src/gallium/state_trackers/python/tests/base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/base.py b/src/gallium/state_trackers/python/tests/base.py index 1fa7fe6f3b3..202ccfc3509 100755 --- a/src/gallium/state_trackers/python/tests/base.py +++ b/src/gallium/state_trackers/python/tests/base.py @@ -46,6 +46,14 @@ for name, value in globals().items(): if name.startswith("PIPE_FORMAT_") and isinstance(value, int): formats[value] = name +def is_depth_stencil_format(format): + # FIXME: make and use binding to pf_is_depth_stencil + return format in ( + PIPE_FORMAT_Z32_UNORM, + PIPE_FORMAT_Z24S8_UNORM, + PIPE_FORMAT_Z24X8_UNORM, + PIPE_FORMAT_Z16_UNORM, + ) def make_image(width, height, rgba): import Image |