rusticl/mesa/context: fix clear_sampler_views
authorKarol Herbst <kherbst@redhat.com>
Sat, 23 Sep 2023 10:01:14 +0000 (12:01 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 21:57:44 +0000 (21:57 +0000)
commit5b233d5184f12f493f2a71cd0a6c9137169741f4
treeeb775cae4905688a33eb9c1ac7e8cd8cc9a19280
parent25c771a77853141fcc220ae74b30492f8199709c
rusticl/mesa/context: fix clear_sampler_views

Even though drivers are required by documentation to handle the samplers
being NULL, st/mesa changed enough so it always sets the pointer.

As being similiar to st/mesa is more important than following docs, we
simply mimic st/mesa here and meet the expectations of drivers.

In the future we want to track the set state similiar to st/mesa, so
`clear_sampler_views` will probably go away and we'll just update what
we'll need.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: @LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25363>
src/gallium/frontends/rusticl/mesa/pipe/context.rs