Commit a119da3b authored by Thomas Hellstrom's avatar Thomas Hellstrom

svga: Set the rendered-to flag for dma transfers to surfaces

The rendered-to flag indicates that the HW surface content is more recent
than the content of the mob. That's the case after a SurfaceDMA transfer
to the surface.
Signed-off-by: default avatarThomas Hellstrom <>
Reviewed-by: Brian Paul's avatarBrian Paul <>
Reviewed-by: Charmaine Lee's avatarCharmaine Lee <>
parent fb6d0976
......@@ -753,6 +753,9 @@ svga_texture_transfer_unmap_dma(struct svga_context *svga,
if (st->base.usage & PIPE_TRANSFER_WRITE) {
/* Use DMA to transfer texture data */
SVGA3dSurfaceDMAFlags flags;
struct pipe_resource *texture = st->base.resource;
struct svga_texture *tex = svga_texture(texture);
memset(&flags, 0, sizeof flags);
......@@ -763,6 +766,7 @@ svga_texture_transfer_unmap_dma(struct svga_context *svga,
svga_transfer_dma(svga, st, SVGA3D_WRITE_HOST_VRAM, flags);
svga_set_texture_rendered_to(tex, st->slice, st->base.level);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment