anv: fix invalid value for push block index

Probably worked because we could always reach to things through the
binding table and the index was the same.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 3256fab5a3)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41104>
This commit is contained in:
Lionel Landwerlin 2026-04-08 17:59:05 +03:00 committed by Eric Engestrom
parent 6ae2931cef
commit 2bd884274f
2 changed files with 3 additions and 3 deletions

View file

@ -1084,7 +1084,7 @@
"description": "anv: fix invalid value for push block index",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -662,7 +662,7 @@ build_descriptor_set_bti(nir_builder *b,
nir_imm_int(b, 0) /* bindless_base_offset */,
.desc_set = set,
.binding = -1,
.resource_block_intel = state->set[set].desc_offset,
.resource_block_intel = state->set[set].push_block,
.resource_access_intel = nir_resource_intel_pushable);
}
}
@ -2370,7 +2370,7 @@ build_packed_binding_table(struct apply_pipeline_layout_state *state,
for (unsigned i = 0; i < bind_layout->array_size; i++)
add_push_entry(push_map, set, b, i, bind_layout);
} else {
state->set[set].binding[b].push_block = state->set[set].desc_offset;
state->set[set].binding[b].push_block = state->set[set].push_block;
}
}
}