etnaviv: check NO_ASTC feature bit
authorJonathan Marek <jonathan@marek.ca>
Fri, 9 Aug 2019 15:44:07 +0000 (11:44 -0400)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 18 Oct 2019 17:30:41 +0000 (19:30 +0200)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_screen.c

index 7feb0cd68318f275e58cb0ad0baa0f6a8ea92793..7c7d1d32e54a19229428ad72291284ecb9f4eb6e 100644 (file)
@@ -752,7 +752,8 @@ etna_get_specs(struct etna_screen *screen)
    if (screen->specs.single_buffer)
       DBG("etnaviv: Single buffer mode enabled with %d pixel pipes", screen->specs.pixel_pipes);
 
-   screen->specs.tex_astc = VIV_FEATURE(screen, chipMinorFeatures4, TEXTURE_ASTC);
+   screen->specs.tex_astc = VIV_FEATURE(screen, chipMinorFeatures4, TEXTURE_ASTC) &&
+                            !VIV_FEATURE(screen, chipMinorFeatures6, NO_ASTC);
 
    screen->specs.use_blt = VIV_FEATURE(screen, chipMinorFeatures5, BLT_ENGINE);