projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7585cbf
)
python/tests: Add is_depth_stencil_format utility function.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Jun 2009 18:22:35 +0000
(19:22 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Jun 2009 18:22:35 +0000
(19:22 +0100)
src/gallium/state_trackers/python/tests/base.py
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/python/tests/base.py
b/src/gallium/state_trackers/python/tests/base.py
index 1fa7fe6f3b3235aeaa5d6edd59e28c186fb07d6c..202ccfc35097fbf1e364c63fe34342cfa2012b05 100755
(executable)
--- 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