From 1046d73af11c5a90a9d207e4554af8f1ffad62d5 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 19 Feb 2020 21:14:35 -0500 Subject: [PATCH] etnaviv: disable INT_FILTER for ASTC Tested on GC3000: INT_FILTER bit is incompatible with ASTC formats. Signed-off-by: Jonathan Marek Reviewed-by: Lucas Stach Tested-by: Marge Bot Part-of: --- src/gallium/drivers/etnaviv/etnaviv_format.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c index 1e1486de8c0..c6611971d2d 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_format.c +++ b/src/gallium/drivers/etnaviv/etnaviv_format.c @@ -288,6 +288,9 @@ texture_use_int_filter(const struct pipe_sampler_view *so, bool tex_desc) if (util_format_is_srgb(so->format)) return false; + if (util_format_description(so->format)->layout == UTIL_FORMAT_LAYOUT_ASTC) + return false; + switch (so->format) { /* apparently D16 can't use int filter but D24 can */ case PIPE_FORMAT_Z16_UNORM: -- 2.30.2