anv:increase instruction heap to 3Gb

Black Myth Wukong is generating more than 2Gb of shaders in
pre-compiling stage after VK_EXT_shader_image_atomic_int64 extension
enabled. Driver will crash in create shader stages due to dereference
null pointer of kernel map.

Signed-off-by: Mi, Yanfeng <yanfeng.mi@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32548>
This commit is contained in:
Mi, Yanfeng
2024-12-10 02:25:42 +08:00
committed by Marge Bot
parent 0a5a04f509
commit 06d3eb8e01

View File

@@ -134,9 +134,8 @@ anv_physical_device_init_va_ranges(struct anv_physical_device *device)
* located at an address with the lower 32bits at 0.
*/
address = align64(address, _4Gb);
address = va_add(&device->va.instruction_state_pool, address, 2 * _1Gb);
address = va_add(&device->va.instruction_state_pool, address, 3 * _1Gb);
address += 1 * _1Gb;
address = va_add(&device->va.dynamic_state_pool, address, _1Gb);
address = va_add(&device->va.dynamic_visible_pool, address,
device->info.verx10 >= 125 ? (2 * _1Gb) : (3 * _1Gb - 4096));