Mesa (master): llvmpipe, softpipe: only support ETC1, not the upcoming ETC2
Ilia Mirkin
imirkin at kemper.freedesktop.org
Thu Feb 19 05:28:06 UTC 2015
Module: Mesa
Branch: master
Commit: 845b9e4294b7b89a33d77ef6713543f96eba0686
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=845b9e4294b7b89a33d77ef6713543f96eba0686
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed Feb 18 22:23:12 2015 -0500
llvmpipe,softpipe: only support ETC1, not the upcoming ETC2
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/llvmpipe/lp_screen.c | 4 ++++
src/gallium/drivers/softpipe/sp_screen.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 8b6e66e..3387d3a 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -453,6 +453,10 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
return FALSE;
}
+ if (format_desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
+ format != PIPE_FORMAT_ETC1_RGB8)
+ return FALSE;
+
if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
return util_format_s3tc_enabled;
}
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index bae1367..a269328 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -353,6 +353,10 @@ softpipe_is_format_supported( struct pipe_screen *screen,
return FALSE;
}
+ if (format_desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
+ format != PIPE_FORMAT_ETC1_RGB8)
+ return FALSE;
+
/*
* All other operations (sampling, transfer, etc).
*/
More information about the mesa-commit
mailing list