aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/gallium/auxiliary/util/u_format.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-11-07 07:22:24 +0100
committermarha <marha@users.sourceforge.net>2011-11-07 07:22:24 +0100
commitaf3f3672e5f77a06a24b1e648ee118f1420b45ae (patch)
tree2f08e1da8d47d44fcbf78f660ee8d99bf162b5f2 /mesalib/src/gallium/auxiliary/util/u_format.c
parent60f8ca2d5842b40b8585c58095787c84edfa9803 (diff)
parent1ed503a856d9753a813951796bc6ba56c42ecd28 (diff)
downloadvcxsrv-af3f3672e5f77a06a24b1e648ee118f1420b45ae.tar.gz
vcxsrv-af3f3672e5f77a06a24b1e648ee118f1420b45ae.tar.bz2
vcxsrv-af3f3672e5f77a06a24b1e648ee118f1420b45ae.zip
Merge remote-tracking branch 'origin/released'
Conflicts: pixman/pixman/pixman-mmx.c
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_format.c')
-rw-r--r--mesalib/src/gallium/auxiliary/util/u_format.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_format.c b/mesalib/src/gallium/auxiliary/util/u_format.c
index e07462a75..cfc4a17a0 100644
--- a/mesalib/src/gallium/auxiliary/util/u_format.c
+++ b/mesalib/src/gallium/auxiliary/util/u_format.c
@@ -443,11 +443,16 @@ util_format_fits_8unorm(const struct util_format_description *format_desc)
switch (format_desc->layout) {
case UTIL_FORMAT_LAYOUT_S3TC:
- case UTIL_FORMAT_LAYOUT_RGTC:
/*
* These are straight forward.
*/
-
+ return TRUE;
+ case UTIL_FORMAT_LAYOUT_RGTC:
+ if (format_desc->format == PIPE_FORMAT_RGTC1_SNORM ||
+ format_desc->format == PIPE_FORMAT_RGTC2_SNORM ||
+ format_desc->format == PIPE_FORMAT_LATC1_SNORM ||
+ format_desc->format == PIPE_FORMAT_LATC2_SNORM)
+ return FALSE;
return TRUE;
case UTIL_FORMAT_LAYOUT_PLAIN: