mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 09:18:04 +02:00
radeon: fix realloc of packets.
This should use ndw not cdw, using cdw leads to realloc alignment going wrong
This commit is contained in:
parent
fbac5891b9
commit
af90222c45
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ static int cs_gem_begin(struct radeon_cs *cs,
|
|||
uint32_t tmp, *ptr;
|
||||
int num = (ndw > 0x3FF) ? ndw : 0x3FF;
|
||||
|
||||
tmp = (cs->cdw + 1 + num) & (~num);
|
||||
tmp = (cs->ndw + 1 + num) & (~num);
|
||||
ptr = (uint32_t*)realloc(cs->packets, 4 * tmp);
|
||||
if (ptr == NULL) {
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue