Skip to content

ir3/ra: assign interval offsets to new defs after shared RA

Shared RA might insert new defs to be handled by regular RA (e.g., shared spills). However, their interval offsets were not initialized which caused their intervals to sometimes be mistakenly matched with those containing offset 0. Fix this by calling index_merge_sets after shared RA and modifying that function to only index new defs in that case.

This fixes a bunch of CTS tests in the dEQP-VK.ssbo.phys.layout.* group with IR3_SHADER_DEBUG=nopreamble.

Edited by Job Noorman

Merge request reports

Loading