diff options
author | Erik Faye-Lund <[email protected]> | 2019-04-04 12:22:07 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-04-17 07:27:08 +0000 |
commit | 6263304b2d4e7a4dbff2c7a23a4f0837486d90fb (patch) | |
tree | 5e946f0d80be9364676842a1f90100f6c2dc1c6a /src/gallium | |
parent | ac932ff82224d707fd03f615750707cf76c250dd (diff) |
virgl: check for readback on correct resource
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index cae7921d683..65d82784d63 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -149,7 +149,7 @@ static void *virgl_texture_transfer_map(struct pipe_context *ctx, trans->resolve_tmp = NULL; } - readback = virgl_res_needs_readback(vctx, vtex, usage, level); + readback = virgl_res_needs_readback(vctx, src_res, usage, level); if (readback) { vs->vws->transfer_get(vs->vws, src_res->hw_res, box, trans->base.stride, trans->l_stride, trans->offset, level); |