mesa/src
GKraats 99e944d0d6 crocus: Fix shader precompilation on Gen6 and higher
By default crocus precompiles shaders, to avoid stuttering at screens,
caused by compiling shaders at the drawing phase.
Unfortunately at intel Gen 6 and higher the precompiled version of the
fragment shaders is not used and every fragment shader is compiled twice.
These double fragment shaders also are added to the memory cache
and disk cache.
This is caused by setting wrong values to variables at the key during
precompiling at routine crocus_create_fs_state() at src/gallium/drivers/crocus/crocus_program.c,
which differ from values at crocus_populate_fs_key() at src/gallium/drivers/crocus/crocus_state.c.

This commit solves 3 problems:

it adjusts the predicted value 'input_slots_valid' at Gen 6
it adjusts the predicted value 'ignore_sample_mask_out' at Gen 6 and higher
it predicts the value 'multisample_fbo' , which helps if samplemask is used

Cc: mesa-stable
Signed-off-by: GKraats <vd.kraats@hccnet.nl>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 686266d2f1)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41268>
2026-04-29 17:53:10 +02:00
..
amd radv/video: Fix initializing rc structs with default rate control 2026-04-29 17:53:10 +02:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi hk: Add HK_MAX_RTS to maxFragmentCombinedOutputResources 2026-04-13 19:02:08 +00:00
broadcom broadcom/compiler: MULTOP in branch delay slots doesn't generate RTOP hazard 2026-04-14 16:34:54 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler glcpp: fix paste within macro function expansion 2026-04-22 14:34:50 +02:00
drm-shim drm-shim: fix shim on GLX 2026-04-14 12:06:10 +00:00
egl meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
etnaviv Uprev Piglit to 11ce9eb56edb00e6a7702d13168cc827ce5e0cbd 2026-04-10 21:21:52 +00:00
freedreno tu/a8xx: remove enforced TU_DEBUG_FLUSHALL 2026-04-22 14:34:50 +02:00
gallium crocus: Fix shader precompilation on Gen6 and higher 2026-04-29 17:53:10 +02:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: additional Goldfish logic for Android builds 2026-04-11 01:11:45 +00:00
glx meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
gtest
imagination pvr: follow other drivers' practice for copying build ID 2026-04-22 14:34:49 +02:00
imgui
intel drirc/anv: add flag to disable VK_EXT_subgroup_size_control 2026-04-29 17:53:10 +02:00
kosmickrisp kk: Fix pre-gfx encoder dependency with gfx encoder 2026-04-14 10:48:29 +00:00
loader kmsro: wire Zink up as a fallback 2026-03-13 18:54:26 +00:00
mesa mesa/st: do not advertise CL subgroup features on the GL side 2026-04-22 14:34:49 +02:00
microsoft nir,treewide: add nir_image_intrinsic_type 2026-03-31 09:10:27 +00:00
nouveau nak: the MS location comes last in TLD, same spot as depth compare in TEX 2026-04-22 14:34:48 +02:00
panfrost panvk: Fix debug flag overlap 2026-04-29 17:53:10 +02:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool intel: Include available counter descriptions in the perfetto counter spec 2026-03-06 08:47:16 +00:00
util drirc: use anv_disable_drm_ccs_modifiers for any GTK version 2026-04-29 17:53:10 +02:00
virtio ci/venus: update expectation for an expected fail 2026-04-10 12:16:04 +00:00
vulkan vulkan: add an option to lower SHADER_RECORD_INDEX to non-uniform 2026-04-22 14:34:48 +02:00
x11 meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
.clang-format intel: add Jay 2026-04-10 18:21:21 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00