freedreno: fix glReadPixels

duh, we still need to flush if there are pending draws and it isn't an
unsynchronized case.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2013-09-19 10:08:38 -04:00
parent 532dc8939f
commit 575a6e7ec5
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ fd_resource_transfer_map(struct pipe_context *pctx,
op |= DRM_FREEDRENO_PREP_NOSYNC;
/* some state trackers (at least XA) don't do this.. */
// if (!(usage & PIPE_TRANSFER_FLUSH_EXPLICIT))
// fd_resource_transfer_flush_region(pctx, ptrans, box);
if (!(usage & (PIPE_TRANSFER_FLUSH_EXPLICIT | PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE)))
fd_resource_transfer_flush_region(pctx, ptrans, box);
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) {
ret = fd_bo_cpu_prep(rsc->bo, ctx->screen->pipe, op);