mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
st/xorg: Flush any pending operations on upload
This commit is contained in:
parent
8d6da811d4
commit
5109484bd9
1 changed files with 5 additions and 0 deletions
|
|
@ -230,6 +230,11 @@ ExaUploadToScreen(PixmapPtr pPix, int x, int y, int w, int h, char *src,
|
|||
if (!priv || !priv->tex)
|
||||
return FALSE;
|
||||
|
||||
/* make sure that any pending operations are flushed to hardware */
|
||||
if (exa->pipe->is_texture_referenced(exa->pipe, priv->tex, 0, 0) &
|
||||
(PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE))
|
||||
xorg_exa_flush(exa, 0, NULL);
|
||||
|
||||
transfer = exa->scrn->get_tex_transfer(exa->scrn, priv->tex, 0, 0, 0,
|
||||
PIPE_TRANSFER_WRITE, x, y, w, h);
|
||||
if (!transfer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue