radeon: indentation + trailing space cleanup

main
Jerome Glisse 2010-01-14 11:08:43 +01:00
parent 06a2d6567e
commit b06cb754a1
1 changed files with 11 additions and 11 deletions

View File

@ -227,7 +227,7 @@ static int cs_gem_begin(struct radeon_cs_int *cs,
if (cs->cdw + ndw > cs->ndw) { if (cs->cdw + ndw > cs->ndw) {
uint32_t tmp, *ptr; 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); tmp = (cs->cdw + ndw + 0x3FF) & (~0x3FF);
ptr = (uint32_t*)realloc(cs->packets, 4 * tmp); ptr = (uint32_t*)realloc(cs->packets, 4 * tmp);
if (ptr == NULL) { 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, r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS,
&csg->cs, sizeof(struct drm_radeon_cs)); &csg->cs, sizeof(struct drm_radeon_cs));
for (i = 0; i < csg->base.crelocs; i++) { for (i = 0; i < csg->base.crelocs; i++) {
csg->relocs_bo[i]->space_accounted = 0; csg->relocs_bo[i]->space_accounted = 0;
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; csg->relocs_bo[i] = NULL;
} }
cs->csm->read_used = 0; cs->csm->read_used = 0;
@ -309,7 +309,7 @@ static int cs_gem_erase(struct radeon_cs_int *cs)
if (csg->relocs_bo) { if (csg->relocs_bo) {
for (i = 0; i < csg->base.crelocs; i++) { for (i = 0; i < csg->base.crelocs; i++) {
if (csg->relocs_bo[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; csg->relocs_bo[i] = NULL;
} }
} }