mesa/src
Gert Wollny a283721514 mesa: signal driver when buffer is bound to different texture format
Gallium caches sampler states for TBOs. Now if a buffer is first
attached to a TBO specifying one format, and later attached by
specifying another format and this TBO is then used, that would lead
to an assertion failure in debug builds, or to invalid rendering in
release builds, because the TBO picks the original, wrong format for
the sampler view.

Resolve this by signalling the change to Gallium (and other drivers), so
that Gallium clears the sampler view cache.

Fixes: f0ecd36ef8
  st/mesa: add an entirely separate codepath for setting up buffer views

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13230>
(cherry picked from commit e95ecff784)
2021-10-11 09:19:38 -07:00
..
amd aco: Fix determining whether any culling is enabled. 2021-10-05 10:34:56 -07:00
android_stub egl/android: refactor to use the legit vndk/window.h header 2021-06-09 21:07:54 +00:00
asahi agx: Plug memory leak in register allocator 2021-07-26 12:16:50 -07:00
broadcom v3d: add R10G10B10X2_UNORM to format table 2021-09-28 12:31:55 -07:00
compiler nir: fix opt_memcpy src/dst mixup 2021-09-28 12:31:57 -07:00
drm-shim drm-shim: Support kernels with >4k pages 2021-08-16 11:40:28 -07:00
egl egl/surfaceless: try kms_swrast before swrast 2021-07-26 12:01:53 -07:00
etnaviv android: Drop the Android.mk build system 2021-07-08 14:44:02 -05:00
freedreno ir3: Use source in ir3_output_conv_src_type() 2021-10-06 10:05:15 -07:00
gallium i915g: Check for the scanout-layout conditions before setting level info. 2021-10-06 10:05:11 -07:00
gbm gbm/dri: Fix leaking bo memory on failure path 2021-07-13 11:15:44 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: Prevent crashes when an extension isn't found 2021-09-08 11:27:45 -07:00
gtest
hgl
imgui
intel anv: add missing transition handling bits 2021-10-07 09:18:46 -07:00
loader loader/dri3: fix swap out of order when changing swap interval 2021-10-01 08:57:31 -07:00
mapi glthread: use custom marshal/unmarshal for CallList 2021-07-09 10:05:46 +00:00
mesa mesa: signal driver when buffer is bound to different texture format 2021-10-11 09:19:38 -07:00
microsoft nir: Drop nir_ssa_def::name and nir_register::name 2021-07-08 17:34:41 +00:00
nouveau
panfrost panfrost: Move special_varying to compiler definitions 2021-10-06 10:05:06 -07:00
tool pps: Panfrost pps driver 2021-07-13 11:03:55 +00:00
util util/fossilize_db: Don't corrupt keys during entry read. 2021-09-08 11:27:44 -07:00
virtio venus: free queues after vkDestroyDevice is emitted 2021-08-09 14:46:36 -07:00
vulkan device_select: close dri3 fd after using it. 2021-10-06 10:05:14 -07:00
meson.build panfrost: Add a Vulkan driver for Midgard/Bifrost GPUs 2021-06-22 14:07:34 +00:00