mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 10:58:15 +02:00
jay: legalize shuffle(ugpr) for now
fixes sascha descriptorindexing .. we'll probably want to revert once divergence analysis & isel agree but until the multipolygon + anv circus settles this is better than blowing up. See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41670 for context. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41808>
This commit is contained in:
parent
4a74c773ff
commit
283eef8ac0
1 changed files with 10 additions and 0 deletions
|
|
@ -194,6 +194,16 @@ jay_lower_pre_ra(jay_shader *s)
|
|||
jay_foreach_inst_in_func(f, block, I) {
|
||||
jay_builder b = { .shader = s, .func = f };
|
||||
|
||||
/* Shuffle(UGPR) can result from copyprop if there's a mismatch between
|
||||
* isel and divergence analysis (e.g. because multipolygon is
|
||||
* disabled). Legalize.
|
||||
*/
|
||||
if (I->op == JAY_OPCODE_SHUFFLE && I->src[0].file == UGPR) {
|
||||
assert(!I->predication);
|
||||
I->op = JAY_OPCODE_MOV;
|
||||
jay_shrink_sources(I, 1);
|
||||
}
|
||||
|
||||
/* lower_immediates must be last since it consumes I */
|
||||
lower_contiguous_sources(&b, I);
|
||||
lower_immediates(&b, I, constants);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue