From: Marek Olšák Date: Fri, 22 Jan 2016 15:13:44 +0000 (+0100) Subject: radeonsi: add ETC1 support for Stoney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd9c07e7cdff5a38fd0de48626baecb5a9013846;p=mesa.git radeonsi: add ETC1 support for Stoney It's a subset of ETC2. Tested. For more information, see page 42 and onward: http://www.graphicshardware.org/previous/www_2007/presentations/strom-etc2-gh07.pdf Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index c010998feab..9e0ccfc5dde 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1379,6 +1379,7 @@ static uint32_t si_translate_texformat(struct pipe_screen *screen, if (desc->layout == UTIL_FORMAT_LAYOUT_ETC && sscreen->b.family >= CHIP_STONEY) { switch (format) { + case PIPE_FORMAT_ETC1_RGB8: case PIPE_FORMAT_ETC2_RGB8: case PIPE_FORMAT_ETC2_SRGB8: return V_008F14_IMG_DATA_FORMAT_ETC2_RGB;