From 23884ee02c48282219be4b29166d9c0ca3024abd Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 18 May 2026 19:18:22 -0700 Subject: [PATCH] jay: Prohibit JAY_STRIDE_8 for EXPAND_QUAD No idea why we're getting a stride 8 here, but we can't handle it. Fixes baldurs_gate_3.vk.foz --graphics-pipeline-range 2248 2249. Part-of: --- src/intel/compiler/jay/jay_register_allocate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/compiler/jay/jay_register_allocate.c b/src/intel/compiler/jay/jay_register_allocate.c index 380a40d6814..21fe2ae7f69 100644 --- a/src/intel/compiler/jay/jay_register_allocate.c +++ b/src/intel/compiler/jay/jay_register_allocate.c @@ -115,6 +115,10 @@ jay_dst_stride_minmax(jay_inst *I, bool do_max) min = MAX2(min, jay_min_stride_for_type(jay_src_type(I, 0))); } + if (I->op == JAY_OPCODE_EXPAND_QUAD) { + return JAY_STRIDE_4; + } + /* V/UV types are restricted */ if (I->op == JAY_OPCODE_SHR_ODD_SUBSPANS_BY_4) { return JAY_STRIDE_2;