mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
6ae2931cef
commit
2bd884274f
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue