mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 09:50:08 +01:00
Gfx 12.5 moved scratch to a surface and SURFTYPE_SCRATCH has this pitch restriction: RENDER_SURFACE_STATE::Surface Pitch For surfaces of type SURFTYPE_SCRATCH, valid range of pitch is: [63,262143] -> [64B, 256KB] The pitch of the surface is the scratch size per thread and the surface should be large enough to accommodate every physical thread. So here adding a new field to intel_device_info, setting it in intel_device_info_init_common() so even offline tools can have it set. And finally adding a check to fail shader compilation if needed scratch is larger than supported. This issue can be reproduced in debug builds when running dEQP-VK.protected_memory.stack.stacksize_1024 on Gfx 12.5 or newer platforms. Ref: BSpec 43862 (r52666) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30271> |
||
|---|---|---|
| .. | ||
| i915 | ||
| xe | ||
| gen_wa_helpers.py | ||
| intel_debug.c | ||
| intel_debug.h | ||
| intel_device_info.c | ||
| intel_device_info.h | ||
| intel_device_info.py | ||
| intel_device_info_gen_h.py | ||
| intel_device_info_override_test.c | ||
| intel_device_info_serialize.h | ||
| intel_device_info_serialize_gen_c.py | ||
| intel_device_info_test.c | ||
| intel_device_info_test.h | ||
| intel_hwconfig.c | ||
| intel_hwconfig.h | ||
| intel_hwconfig_types.h | ||
| intel_kmd.c | ||
| intel_kmd.h | ||
| mesa_defs.json | ||
| meson.build | ||