summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/r600/drm
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2010-10-04 10:40:07 -0400
committerJerome Glisse <[email protected]>2010-10-04 17:25:19 -0400
commitb25c52201bae6d38c809f0d63f4fb287bf69d05a (patch)
tree9c8aeaa931a9689e8fe1daeeef21b114cea155a5 /src/gallium/winsys/r600/drm
parent243d6ea6091514f04bf3c23f1957665cf25ae6eb (diff)
r600g: remove dead label & fix indentation
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/winsys/r600/drm')
-rw-r--r--src/gallium/winsys/r600/drm/radeon_bo.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/gallium/winsys/r600/drm/radeon_bo.c b/src/gallium/winsys/r600/drm/radeon_bo.c
index bb93ce6c9e3..14af3ec97ec 100644
--- a/src/gallium/winsys/r600/drm/radeon_bo.c
+++ b/src/gallium/winsys/r600/drm/radeon_bo.c
@@ -58,9 +58,7 @@ static int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo)
}
bo->data = ptr;
-success:
bo->map_count++;
-
return 0;
}
@@ -168,16 +166,16 @@ int radeon_bo_wait(struct radeon *radeon, struct radeon_bo *bo)
int radeon_bo_busy(struct radeon *radeon, struct radeon_bo *bo, uint32_t *domain)
{
- struct drm_radeon_gem_busy args;
- int ret;
+ struct drm_radeon_gem_busy args;
+ int ret;
- memset(&args, 0, sizeof(args));
- args.handle = bo->handle;
- args.domain = 0;
+ memset(&args, 0, sizeof(args));
+ args.handle = bo->handle;
+ args.domain = 0;
- ret = drmCommandWriteRead(radeon->fd, DRM_RADEON_GEM_BUSY,
- &args, sizeof(args));
+ ret = drmCommandWriteRead(radeon->fd, DRM_RADEON_GEM_BUSY,
+ &args, sizeof(args));
- *domain = args.domain;
- return ret;
+ *domain = args.domain;
+ return ret;
}