mesa/src/panfrost
Alyssa Rosenzweig f2506780c8 mesa/st: Only set seamless for GLES3
6148e3aae7 ("mesa: Fix ctx->Texture.CubeMapSeamless") introduced a hack, where
seamless cube maps would be requested even for GLES2 contexts despite the spec,
on the assumption that GLES2 gallium drivers would ignore the bit. But that
requires Gallium drivers to know what GLES version they advertise, which is a
horrible layering violation. When the commit was written 8 years ago, there were
classic drivers to contend with so it made sense as a fix to get GLES 3.0 up and
running. With classic drivers gone, it's time to sunset the hack and restore the
intended behaviour by setting ctx->Texture.CubeMapSeamless only once we know the
version.

In addition to fixing a semantic issue in the Gallium contract and preventing a
regression from the next commit, this fixes cube maps on Mali-T720 under
Panfrost. In general, Panfrost supports GLES3 (and honours the seamless flag
everywhere) but on T720 we only advertise GLES2 due to missing MRT support on
older Midgard devices, so we need the flag set properly to distinguish these
cases.

Cc: mesa-stable
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21978>
2023-03-28 21:30:12 +00:00
..
ci mesa/st: Only set seamless for GLES3 2023-03-28 21:30:12 +00:00
compiler pan/bi: Call pan_nir_lower_zs_store late 2023-03-23 23:53:46 +00:00
drm-shim panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
ds panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
include panfrost: Remove MALI_POSITIVE macro 2023-03-11 06:30:02 +00:00
lib panfrost: Remove Midgard RSD fields from Bifrost 2023-03-23 23:53:46 +00:00
midgard panfrost: Lower sysvals in GL 2023-03-23 23:53:46 +00:00
perf panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
util util,mesa,panfrost: Drop some author tags 2023-03-26 00:16:25 +00:00
vulkan panvk: Lower blending late 2023-03-23 23:53:46 +00:00
.clang-format panfrost: Add clang-format file 2022-12-24 02:22:57 +00:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00