mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
radv: fix resetting the entire vertex input dynamic state
If there is holes, eg. the application firsts set vertex attributes 0 and 1, then vertex attributes 0 and 7, the format of vertex attribute 1 is still the previous one, while it should be FORMAT_INVALID to avoid a GPU hang. This fixes a GPU hang with Yuzu. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5627 Cc: 21.3 mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13856>
This commit is contained in:
parent
18cd0a5409
commit
8f00f19da5
1 changed files with 1 additions and 8 deletions
|
|
@ -5477,14 +5477,7 @@ radv_CmdSetVertexInputEXT(VkCommandBuffer commandBuffer, uint32_t vertexBindingD
|
|||
|
||||
cmd_buffer->state.vbo_misaligned_mask = 0;
|
||||
|
||||
state->attribute_mask = 0;
|
||||
state->misaligned_mask = 0;
|
||||
state->possibly_misaligned_mask = 0;
|
||||
state->instance_rate_inputs = 0;
|
||||
state->nontrivial_divisors = 0;
|
||||
state->post_shuffle = 0;
|
||||
state->alpha_adjust_lo = 0;
|
||||
state->alpha_adjust_hi = 0;
|
||||
memset(state, 0, sizeof(*state));
|
||||
|
||||
enum chip_class chip = cmd_buffer->device->physical_device->rad_info.chip_class;
|
||||
for (unsigned i = 0; i < vertexAttributeDescriptionCount; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue