mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
radv/winsys: fix resetting the number of padded IB words
The number of padded words is per IB, so it should be reset.
Found with Valgrind and dEQP-VK.api.command_buffers.record_many_draws*
Cc: 21.1 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10376>
(cherry picked from commit f9e9b21e10)
This commit is contained in:
parent
cebc8191a8
commit
71a46b9a9d
2 changed files with 3 additions and 2 deletions
|
|
@ -238,7 +238,7 @@
|
|||
"description": "radv/winsys: fix resetting the number of padded IB words",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -902,7 +902,6 @@ radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx, int queue_id
|
|||
unsigned number_of_ibs;
|
||||
uint32_t *ptr;
|
||||
unsigned cnt = 0;
|
||||
unsigned pad_words = 0;
|
||||
|
||||
/* Compute the number of IBs for this submit. */
|
||||
number_of_ibs = cs->num_old_cs_buffers + 1;
|
||||
|
|
@ -935,6 +934,7 @@ radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx, int queue_id
|
|||
for (unsigned j = 0; j < number_of_ibs; j++) {
|
||||
struct radeon_cmdbuf *rcs = new_cs_array[j];
|
||||
bool needs_preamble = preamble_cs && j == 0;
|
||||
unsigned pad_words = 0;
|
||||
unsigned size = 0;
|
||||
|
||||
if (needs_preamble)
|
||||
|
|
@ -973,6 +973,7 @@ radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx, int queue_id
|
|||
cnt++;
|
||||
free(new_cs_array);
|
||||
} else {
|
||||
unsigned pad_words = 0;
|
||||
unsigned size = 0;
|
||||
|
||||
if (preamble_cs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue