projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbac589
)
radeon: fix realloc of packets.
author
Dave Airlie
<airlied@redhat.com>
Fri, 3 Jul 2009 11:13:22 +0000
(21:13 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 3 Jul 2009 11:13:22 +0000
(21:13 +1000)
This should use ndw not cdw, using cdw leads to realloc alignment going wrong
libdrm/radeon/radeon_cs_gem.c
patch
|
blob
|
history
diff --git
a/libdrm/radeon/radeon_cs_gem.c
b/libdrm/radeon/radeon_cs_gem.c
index
82ef16c
..
edba517
100644
(file)
--- a/
libdrm/radeon/radeon_cs_gem.c
+++ b/
libdrm/radeon/radeon_cs_gem.c
@@
-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->
c
dw + 1 + num) & (~num);
+ tmp = (cs->
n
dw + 1 + num) & (~num);
ptr = (uint32_t*)realloc(cs->packets, 4 * tmp);
if (ptr == NULL) {
return -ENOMEM;