From: Marek Olšák Date: Sat, 15 Oct 2016 12:28:01 +0000 (+0200) Subject: radeonsi/gfx9: enable ETC2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d214b95e9a113733865546f3388a38bdee69a95f;p=mesa.git radeonsi/gfx9: enable ETC2 Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index efbd0c62caf..affd7875d56 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1425,7 +1425,8 @@ static uint32_t si_translate_texformat(struct pipe_screen *screen, } if (desc->layout == UTIL_FORMAT_LAYOUT_ETC && - sscreen->b.family == CHIP_STONEY) { + (sscreen->b.family == CHIP_STONEY || + sscreen->b.chip_class >= GFX9)) { switch (format) { case PIPE_FORMAT_ETC1_RGB8: case PIPE_FORMAT_ETC2_RGB8: