summaryrefslogtreecommitdiffstats
path: root/progs/gallium/python/tests/base.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-03-31 13:27:08 +0100
committerJosé Fonseca <[email protected]>2010-03-31 13:27:08 +0100
commit6de8f86ab4cf5d6af3023714b77a3555f2ad58a0 (patch)
tree4893203a532373a84e3521c5a9e711a46e7ae52a /progs/gallium/python/tests/base.py
parentaae63a7109c963794b28e64078fd0fb1d454f5df (diff)
python/tests: Test all existing gallium formats.
Diffstat (limited to 'progs/gallium/python/tests/base.py')
-rwxr-xr-xprogs/gallium/python/tests/base.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/progs/gallium/python/tests/base.py b/progs/gallium/python/tests/base.py
index 3699af81451..6296eb58504 100755
--- a/progs/gallium/python/tests/base.py
+++ b/progs/gallium/python/tests/base.py
@@ -43,18 +43,9 @@ from gallium import *
# Enumerate all pixel formats
formats = {}
for name, value in globals().items():
- if name.startswith("PIPE_FORMAT_") and isinstance(value, int):
+ if name.startswith("PIPE_FORMAT_") and isinstance(value, int) and name != "PIPE_FORMAT_COUNT":
formats[value] = name
-def is_depth_stencil_format(format):
- # FIXME: make and use binding to util_format_is_depth_or_stencil
- return format in (
- PIPE_FORMAT_Z32_UNORM,
- PIPE_FORMAT_S8Z24_UNORM,
- PIPE_FORMAT_X8Z24_UNORM,
- PIPE_FORMAT_Z16_UNORM,
- )
-
def make_image(width, height, rgba):
import Image
outimage = Image.new(