aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-10-15 14:28:01 +0200
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commitd214b95e9a113733865546f3388a38bdee69a95f (patch)
tree95ea4526fa92242a3c344d4dd6607113d9d46164 /src/gallium/drivers/radeonsi/si_state.c
parent6d21fd51b6a46accb0320a8ceb52f11edc57e82b (diff)
radeonsi/gfx9: enable ETC2
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c3
1 files changed, 2 insertions, 1 deletions
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: