diff options
author | Charmaine Lee <[email protected]> | 2016-10-03 13:29:58 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-11-03 14:29:22 -0600 |
commit | a2d49c4b466e493954dea750a48cd816bcf3c5d6 (patch) | |
tree | f7865393d046ea3388524dc8d3796a1b48d1faaf /src/gallium/drivers/svga | |
parent | 59f14563a306b33171ea2d8fa73aa3a4363761a3 (diff) |
svga: set rendered-to flag after updating the texture using PredCopyRegion
This patch sets the rendered-to flag for the subresource after it is
updated using the PredCopyRegion command. This is to ensure that the GB surface
will be sync up properly before it will be directly mapped to.
Tested with MTT piglit, glretrace.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c index 054e3f5a1c0..3e236fc6d55 100644 --- a/src/gallium/drivers/svga/svga_pipe_blit.c +++ b/src/gallium/drivers/svga/svga_pipe_blit.c @@ -82,7 +82,11 @@ copy_region_vgpu10(struct svga_context *svga, struct pipe_resource *src_tex, assert(ret == PIPE_OK); } + /* Mark the texture subresource as defined. */ svga_define_texture_level(dtex, dst_face, dst_level); + + /* Mark the texture subresource as rendered-to. */ + svga_set_texture_rendered_to(dtex, dst_face, dst_level); } |