summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format_access.py
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-03-31 16:57:05 +0200
committerRoland Scheidegger <sroland@vmware.com>2010-03-31 16:57:05 +0200
commitd97f6963aee71d8fafa2a94a5fe1f3ca4b4ef16d (patch)
tree4b6fa4c2104dae852616908923d00b723cca082c /src/gallium/auxiliary/util/u_format_access.py
parent96bf4aff5bd674bba5d83ab32c46024a686c1a1d (diff)
parent56b34e54f29cdd0a479219695c6559c44a41a76c (diff)
Merge branch 'gallium-new-formats'
Conflicts: src/gallium/auxiliary/util/u_format.csv src/gallium/auxiliary/util/u_format_access.py src/gallium/auxiliary/util/u_format_pack.py
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_access.py')
-rw-r--r--src/gallium/auxiliary/util/u_format_access.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format_access.py b/src/gallium/auxiliary/util/u_format_access.py
index c85f538626..1c76d9a79d 100644
--- a/src/gallium/auxiliary/util/u_format_access.py
+++ b/src/gallium/auxiliary/util/u_format_access.py
@@ -60,6 +60,9 @@ def is_format_supported(format):
channel = format.channels[i]
if channel.type not in (VOID, UNSIGNED, FLOAT):
return False
+ if channel.type == FLOAT:
+ if channel.size not in (32, 64) or format.is_mixed():
+ return False
# We can only read a color from a depth/stencil format if the depth channel is present
if format.colorspace == 'zs' and format.swizzles[0] == SWIZZLE_NONE: