mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02: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>
(cherry picked from commit 8f00f19da5)
This commit is contained in:
parent
cb5b523922
commit
36659b347c
2 changed files with 2 additions and 9 deletions
|
|
@ -40,7 +40,7 @@
|
|||
"description": "radv: fix resetting the entire vertex input dynamic state",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5467,14 +5467,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