mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
Fix texrect upload conflicts.
This commit is contained in:
parent
070f280895
commit
5319ed0e53
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue