mesa/st: always force integer filtering to nearest

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18292>
This commit is contained in:
Erik Faye-Lund
2022-08-30 08:47:57 +02:00
committed by Marge Bot
parent 70c71c4200
commit ec222a20da

View File

@@ -70,7 +70,7 @@ st_convert_sampler(const struct st_context *st,
sampler->seamless_cube_map |= seamless_cube_map; 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_img_filter = PIPE_TEX_FILTER_NEAREST;
sampler->min_mip_filter = PIPE_TEX_FILTER_NEAREST; sampler->min_mip_filter = PIPE_TEX_FILTER_NEAREST;
sampler->mag_img_filter = PIPE_TEX_FILTER_NEAREST; sampler->mag_img_filter = PIPE_TEX_FILTER_NEAREST;