mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
added a pipe->flush() call in xmesa_clear()
This commit is contained in:
parent
02cf317ed6
commit
af96043167
1 changed files with 11 additions and 0 deletions
|
|
@ -117,6 +117,12 @@ put_tile(struct pipe_surface *ps,
|
|||
xrb->St.Base.PutRow(ctx, &xrb->St.Base, w, x, y - i, tmp, NULL);
|
||||
p += w0 * 4;
|
||||
}
|
||||
#if 0 /* debug: flush */
|
||||
{
|
||||
XMesaContext xm = XMESA_CONTEXT(ctx);
|
||||
XSync(xm->display, 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -208,6 +214,11 @@ xmesa_clear(struct pipe_context *pipe, struct pipe_surface *ps, GLuint value)
|
|||
{
|
||||
struct xmesa_renderbuffer *xrb = xmesa_rb((struct softpipe_surface *) ps);
|
||||
|
||||
/* XXX actually, we should just discard any cached tiles from this
|
||||
* surface since we don't want to accidentally re-use them after clearing.
|
||||
*/
|
||||
pipe->flush(pipe, 0);
|
||||
|
||||
if (xrb && xrb->ximage) {
|
||||
/* clearing back color buffer */
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue