mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
aco/print_asm: allow for empty blocks with arbitrary offsets
We will add empty blocks at the end of the shader, in order to store some branch offset information. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32037>
This commit is contained in:
parent
ab26b99c2c
commit
3a02bbd916
1 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ void
|
|||
print_block_markers(FILE* output, Program* program, const std::vector<bool>& referenced_blocks,
|
||||
unsigned* next_block, unsigned pos)
|
||||
{
|
||||
while (*next_block < program->blocks.size() && pos == program->blocks[*next_block].offset) {
|
||||
while (*next_block < program->blocks.size() && pos >= program->blocks[*next_block].offset) {
|
||||
assert(pos == program->blocks[*next_block].offset ||
|
||||
program->blocks[*next_block].instructions.empty());
|
||||
if (referenced_blocks[*next_block])
|
||||
fprintf(output, "BB%u:\n", *next_block);
|
||||
(*next_block)++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue