diff options
author | Matthias Hopf <mhopf@suse.de> | 2009-02-22 20:37:10 +0100 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2009-02-24 17:33:14 +0100 |
commit | edbc780f64dddd00b1b0b0e8cfdc26296b7f3a88 (patch) | |
tree | 6128f3a349f51f3a958be390ecb25339b274a723 | |
parent | 1f35e64801524fe65f2c44621f5688ffee4b5374 (diff) |
Use actually adapt->free* for object upload.
-rw-r--r-- | r600_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |