From ec222a20dad0c72293ed365a42d8566cac47ad8f Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 30 Aug 2022 08:47:57 +0200 Subject: [PATCH] mesa/st: always force integer filtering to nearest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no need to re-check the DRI-config setting here; we either already got nearest filtering already, or the we applied a work-around to avoid incomplete textures. In either case, these should be nearest, no need to check for it again. Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_atom_sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index afee171d715..c2724abf332 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -70,7 +70,7 @@ st_convert_sampler(const struct st_context *st, sampler->seamless_cube_map |= seamless_cube_map; - if (texobj->_IsIntegerFormat && st->ctx->Const.ForceIntegerTexNearest) { + if (texobj->_IsIntegerFormat) { sampler->min_img_filter = PIPE_TEX_FILTER_NEAREST; sampler->min_mip_filter = PIPE_TEX_FILTER_NEAREST; sampler->mag_img_filter = PIPE_TEX_FILTER_NEAREST;