summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-05-12 17:16:56 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-05-12 17:18:57 +0000
commit65fae193831e9fd4b2fc5a1b8170215cc77427dd (patch)
tree7fe1e9bfd740abf58e9e138e86e1d03f491ecb67 /src/mesa
parentb78aec576735c663342da8367dccd3de71e70c34 (diff)
Revert "r300: Perform the locking closer to the DRM texture upload call."
This reverts commit 93881edb46fc95e1cfb4ded4e8a5db92612d3e4d.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_texmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c
index 30f3886542..eef5ff186f 100644
--- a/src/mesa/drivers/dri/r300/r300_texmem.c
+++ b/src/mesa/drivers/dri/r300/r300_texmem.c
@@ -469,14 +469,12 @@ static void r300UploadSubImage(r300ContextPtr rmesa, r300TexObjPtr t,
}
}
+ LOCK_HARDWARE(&rmesa->radeon);
do {
- LOCK_HARDWARE(&rmesa->radeon);
ret =
drmCommandWriteRead(rmesa->radeon.dri.fd,
DRM_RADEON_TEXTURE, &tex,
sizeof(drm_radeon_texture_t));
- UNLOCK_HARDWARE(&rmesa->radeon);
-
if (ret) {
if (RADEON_DEBUG & DEBUG_IOCTL)
fprintf(stderr,
@@ -485,6 +483,8 @@ static void r300UploadSubImage(r300ContextPtr rmesa, r300TexObjPtr t,
}
} while (ret == -EAGAIN);
+ UNLOCK_HARDWARE(&rmesa->radeon);
+
if (ret) {
fprintf(stderr, "DRM_RADEON_TEXTURE: return = %d\n", ret);
fprintf(stderr, " offset=0x%08x\n", offset);