diff options
author | Aapo Tahkola <[email protected]> | 2006-03-20 13:37:28 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2006-03-20 13:37:28 +0000 |
commit | 5319ed0e531b80038cebb4fef85f59bd2c3360a1 (patch) | |
tree | 8afb5e6ac5fef1639e0aafa709abf705da260e22 /src | |
parent | 070f2808959dde535cbbdf0938ca9490f6231374 (diff) |
Fix texrect upload conflicts.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_texmem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c index d78ec3b12c7..90d8b2fd8e3 100644 --- a/src/mesa/drivers/dri/r300/r300_texmem.c +++ b/src/mesa/drivers/dri/r300/r300_texmem.c @@ -56,6 +56,10 @@ SOFTWARE. #include "r300_ioctl.h" #include <unistd.h> /* for usleep() */ +#ifdef USER_BUFFERS +#include "radeon_mm.h" +#endif + /** * Destroy any device-dependent state associated with the texture. This may * include NULLing out hardware state that points to the texture. @@ -268,6 +272,9 @@ static void r300UploadRectSubImage(r300ContextPtr rmesa, width, lines); r300EmitWait(rmesa, R300_WAIT_2D); +#ifdef USER_BUFFERS + radeon_mm_use(rmesa, region.buf->id); +#endif r300ReleaseDmaRegion(rmesa, ®ion, __FUNCTION__); done += lines; |