radeon: indentation + trailing space cleanup
parent
06a2d6567e
commit
b06cb754a1
|
@ -227,7 +227,7 @@ static int cs_gem_begin(struct radeon_cs_int *cs,
|
|||
if (cs->cdw + ndw > cs->ndw) {
|
||||
uint32_t tmp, *ptr;
|
||||
|
||||
/* round up the required size to a multiple of 1024 */
|
||||
/* round up the required size to a multiple of 1024 */
|
||||
tmp = (cs->cdw + ndw + 0x3FF) & (~0x3FF);
|
||||
ptr = (uint32_t*)realloc(cs->packets, 4 * tmp);
|
||||
if (ptr == NULL) {
|
||||
|
@ -279,9 +279,9 @@ static int cs_gem_emit(struct radeon_cs_int *cs)
|
|||
r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS,
|
||||
&csg->cs, sizeof(struct drm_radeon_cs));
|
||||
for (i = 0; i < csg->base.crelocs; i++) {
|
||||
csg->relocs_bo[i]->space_accounted = 0;
|
||||
radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]);
|
||||
csg->relocs_bo[i] = NULL;
|
||||
csg->relocs_bo[i]->space_accounted = 0;
|
||||
radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]);
|
||||
csg->relocs_bo[i] = NULL;
|
||||
}
|
||||
|
||||
cs->csm->read_used = 0;
|
||||
|
@ -309,7 +309,7 @@ static int cs_gem_erase(struct radeon_cs_int *cs)
|
|||
if (csg->relocs_bo) {
|
||||
for (i = 0; i < csg->base.crelocs; i++) {
|
||||
if (csg->relocs_bo[i]) {
|
||||
radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]);
|
||||
radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]);
|
||||
csg->relocs_bo[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue