etnaviv: fix disabling of INT filter for real
authorLucas Stach <l.stach@pengutronix.de>
Mon, 16 Nov 2020 13:58:38 +0000 (14:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Nov 2020 18:11:56 +0000 (18:11 +0000)
commitb479a1f03cdcf70b86df6903ace6ff8c92f205b9
treea5c650f0320649bc84a65e7f8912269d86be058b
parentad6365f656b44c8daf788582ba8a91b72d9710c0
etnaviv: fix disabling of INT filter for real

Missing a copy of the pipe_sampler_state into the etna_sampler_state object
lead to the texture_use_int_filter() to always see a max_anisotropy of 0, so
the INT filter wasn't disabled when necessary. Also state emission should
never change the state objects, as this might also lead to stale information
being kept around the in the state object.

Fixes: 89a41dae7702 (etnaviv: do not use int filter when
                     anisotropic filtering is used)

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7638>
src/gallium/drivers/etnaviv/etnaviv_texture_desc.c
src/gallium/drivers/etnaviv/etnaviv_texture_state.c