mesa: fix ms fallback texture creation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Apr 2023 20:28:16 +0000 (16:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Apr 2023 13:21:46 +0000 (13:21 +0000)
commitd2ccdc3e8daf87bc782be6071364fa2743a3e74f
treede7c7d62170081a474b52727ffaba9a9d3400fe3
parentc29359a008d4436b10649dc62faf475d7f529ca9
mesa: fix ms fallback texture creation

when a ms fallback texture is created, it has to actually be a ms texture
in order to be consistent with driver expectations for a given sampler in
a shader

this adds sample querying to both ends of the fallback creation to ensure
that a sample count is passed to the driver

affects:
KHR-GL46.sample_variables.position.fixed.samples_0

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22492>
src/mesa/main/texobj.c
src/mesa/state_tracker/st_cb_texture.c