mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
etnaviv: don't advertise anisotropic filtering on GPUs with NO_ANISTRO_FILTER
Anisotropic filtering is generally supported starting with halti0, but there is a separate feature bit telling us that the filter is not available. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35666>
This commit is contained in:
parent
4b424e9b86
commit
3a40d5a7bf
3 changed files with 4 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ enum etna_feature {
|
|||
ETNA_FEATURE_RA_WRITE_DEPTH,
|
||||
ETNA_FEATURE_CACHE128B256BPERLINE,
|
||||
ETNA_FEATURE_NEW_GPIPE,
|
||||
ETNA_FEATURE_NO_ANISO,
|
||||
ETNA_FEATURE_NO_ASTC,
|
||||
ETNA_FEATURE_V4_COMPRESSION,
|
||||
ETNA_FEATURE_RS_NEW_BASEADDR,
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ etna_query_feature_db(struct etna_core_info *info)
|
|||
|
||||
ETNA_FEATURE(CACHE128B256BPERLINE, CACHE128B256BPERLINE);
|
||||
ETNA_FEATURE(NEW_GPIPE, NEW_GPIPE);
|
||||
ETNA_FEATURE(NO_ANISTRO_FILTER, NO_ANISO);
|
||||
ETNA_FEATURE(NO_ASTC, NO_ASTC);
|
||||
ETNA_FEATURE(V4Compression, V4_COMPRESSION);
|
||||
|
||||
|
|
|
|||
|
|
@ -244,6 +244,8 @@ etna_init_screen_caps(struct etna_screen *screen)
|
|||
caps->primitive_restart =
|
||||
caps->primitive_restart_fixed_index = VIV_FEATURE(screen, ETNA_FEATURE_HALTI0);
|
||||
|
||||
caps->anisotropic_filter &= !VIV_FEATURE(screen, ETNA_FEATURE_NO_ANISO);
|
||||
|
||||
caps->alpha_test = !VIV_FEATURE(screen, ETNA_FEATURE_PE_NO_ALPHA_TEST);
|
||||
|
||||
caps->draw_indirect = VIV_FEATURE(screen, ETNA_FEATURE_HALTI5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue