mesa/src/intel
Paulo Zanoni 081dd1db75 intel/blorp: fix blorp base key initialization
When you use designated initializers, anything that is not explicitly
set is set to zero. When you do something like:

  struct blorp_blit_prog_key {
    .base = BLORP_BASE_KEY_INIT(BLORP_SHADER_TYPE_BLIT),
    .base.shader_pipeline = BLORP_SHADER_PIPELINE_RENDER,
  };

the second initialization is the only one that does something: it sets
shader_pipeline to the desired value, and all the other fields in
"base" are set to 0. This is easily verifiable by just examining the
contents of all the blorp keys we initialize this way: name and
shader_type are always zero.

This means that if two blorp shaders of different types have the
same key size, the shader cache could confuse them. Still, I don't
think this is happening in the real world.

Fixes: 22ecb4a10f ("intel/blorp: Support compute for slow clears")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/11690
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41976>
2026-06-08 21:18:46 +00:00
..
blorp intel/blorp: fix blorp base key initialization 2026-06-08 21:18:46 +00:00
ci nir/algebraic: Convert bcsel of addition to addition of b2i or b2f 2026-06-02 17:44:14 +00:00
common mi_builder: mi_umax2 tests 2026-05-29 18:12:37 +00:00
compiler jay/register_allocate: make phi webs conservative 2026-06-08 15:56:28 +00:00
decoder intel/decoder: Convert to use gen module 2026-05-30 00:54:00 +00:00
dev jay: Add an INTEL_JAY=all option 2026-06-03 15:23:20 +00:00
ds intel: switch shader hash to 64bit value 2026-05-22 15:05:30 +00:00
executor intel/executor: Update to use gen module 2026-05-30 00:54:00 +00:00
genxml anv, iris: fix MOCS Index setting of EXECUTE_INDIRECT_* commands 2026-05-19 22:41:53 +00:00
isl intel/isl: Fix the initial state HiZ state for Xe2+ 2026-06-03 00:51:27 +00:00
mda intel/mda: Change the default output directory 2026-05-29 17:30:38 +00:00
nullhw-layer build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
perf meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
shaders anv: add Gfx9 support VK_EXT_device_generated_commands 2026-05-06 09:49:52 +00:00
tools intel/tools: fix stall_csv_filename maybe-unitialized error 2026-06-02 22:01:01 +00:00
vulkan anv: Replace most parameters of fill_inline_param() by a struct 2026-06-08 18:41:25 +00:00
vulkan_hasvk vulkan: implement VK_EXT_debug_marker 2026-06-01 15:31:38 +00:00
meson.build brw: Move into a new src/intel/compiler/brw subdirectory 2025-10-09 07:01:47 +00:00