radeonsi: enable ETC2 hw acceleration on Raven2
authorMarek Olšák <marek.olsak@amd.com>
Wed, 5 Aug 2020 17:12:06 +0000 (13:12 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 7 Aug 2020 15:04:05 +0000 (11:04 -0400)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6213>

src/gallium/drivers/radeonsi/si_state.c

index 4ebcf5088a66a415495cbe6173c627efd211a9e0..30f46c66258961cfaf30a02b77c583dbb1cedd12 100644 (file)
@@ -1651,7 +1651,7 @@ static uint32_t si_translate_texformat(struct pipe_screen *screen, enum pipe_for
 
    if (desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
        (sscreen->info.family == CHIP_STONEY || sscreen->info.family == CHIP_VEGA10 ||
-        sscreen->info.family == CHIP_RAVEN)) {
+        sscreen->info.family == CHIP_RAVEN || sscreen->info.family == CHIP_RAVEN2)) {
       switch (format) {
       case PIPE_FORMAT_ETC1_RGB8:
       case PIPE_FORMAT_ETC2_RGB8: