diff options
author | Ilia Mirkin <[email protected]> | 2015-02-18 22:23:12 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-18 22:32:25 -0500 |
commit | 845b9e4294b7b89a33d77ef6713543f96eba0686 (patch) | |
tree | 09aba4eac284a3d5a44d5d3f98f5c0245cebda26 /src/gallium/drivers/softpipe/sp_screen.c | |
parent | 0821efcb333ed2af639561f0ae77220ed4710559 (diff) |
llvmpipe,softpipe: only support ETC1, not the upcoming ETC2
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index bae136768a4..a269328aff8 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). */ |