summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2009-02-22 20:37:10 +0100
committerMatthias Hopf <mhopf@suse.de>2009-02-24 17:33:14 +0100
commitedbc780f64dddd00b1b0b0e8cfdc26296b7f3a88 (patch)
tree6128f3a349f51f3a958be390ecb25339b274a723
parent1f35e64801524fe65f2c44621f5688ffee4b5374 (diff)
Use actually adapt->free* for object upload.
-rw-r--r--r600_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/r600_lib.c b/r600_lib.c
index e6767d8..b9b58ab 100644
--- a/r600_lib.c
+++ b/r600_lib.c
@@ -344,7 +344,7 @@ uint64_t upload_gart (adapter_t *adapt, void *input, int size, int offset)
uint64_t upload_gpu (adapter_t *adapt, void *input, int size, int offset)
{
- int off = (adapt->color_pitch * adapt->color_height * 4) + offset;
+ int off = adapt->free_gpu - adapt->framebuffer_gpu + offset;
return do_upload (adapt, adapt->framebuffer_gpu + off, (char *)adapt->framebuffer + off,
input, size, offset);
}