mesa/src
GKraats 286c245e98 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/41269>
2026-04-29 17:54:43 +02:00
..
amd radv/video: Fix initializing rc structs with default rate control 2026-04-29 17:54:43 +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-14 15:27:47 +02:00
broadcom broadcom/compiler: really enable branch in delay slots validation 2026-04-29 17:54:41 +02: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-29 17:54:42 +02:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
etnaviv etnaviv/ci: Add gitlab-ci-inc.yml to file list 2026-01-19 20:46:38 +00:00
freedreno ir3/ra: fix copy-paste error 2026-04-14 15:27:47 +02:00
gallium crocus: Fix shader precompilation on Gen6 and higher 2026-04-29 17:54:43 +02:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: Fix vkSetDebugUtilsObjectNameEXT crash for unwrapped objects 2026-04-01 11:45:35 +02:00
glx glx: guard glx_screen frontend_screen member 2026-03-11 23:21:11 +01:00
gtest
imagination pvr: follow other drivers' practice for copying build ID 2026-04-29 17:54:41 +02:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel drirc/anv: add flag to disable VK_EXT_subgroup_size_control 2026-04-29 17:54:42 +02:00
kosmickrisp kk: Fix graphics pipeline serialization 2026-02-25 14:22:22 +01:00
loader loader: fix UB in wayland helper code. 2026-01-03 07:56:38 +00:00
mesa mesa/st: do not advertise CL subgroup features on the GL side 2026-04-29 17:54:41 +02:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nak: the MS location comes last in TLD, same spot as depth compare in TEX 2026-04-29 17:54:41 +02:00
panfrost pan/ci: Mark couple of WSI crashes as flakes 2026-04-29 17:54:42 +02:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps/meson: minor refactor for pps_deps 2025-11-08 18:39:00 -08:00
util drirc: use anv_disable_drm_ccs_modifiers for any GTK version 2026-04-29 17:54:42 +02:00
virtio [26.0 only] venus/ci: mark a test as fixed 2026-04-01 11:45:33 +02:00
vulkan vulkan: mark RP attachments as invalid when no rendering create info 2026-04-14 15:27:47 +02:00
x11 x11: Add helper util to check for xshm support 2026-03-11 23:21:10 +01:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build kk: Add KosmicKrisp 2025-10-20 17:46:38 +00:00