Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
/* If the GPU is writing to the resource, or if it is reading from the
* resource and we're trying to write to it, flush the renders.
*/
- if (rsc->dirty)
+ if (rsc->dirty ||
+ ((ptrans->usage & PIPE_TRANSFER_WRITE) && rsc->reading))
fd_context_render(pctx);
/* The GPU keeps track of how the various bo's are being used, and
uint32_t layer_size;
struct fd_resource_slice slices[MAX_MIP_LEVELS];
uint32_t timestamp;
- bool dirty;
+ bool dirty, reading;
};
static INLINE struct fd_resource *