aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-07-10 00:33:29 -0700
committerChia-I Wu <[email protected]>2019-07-19 18:04:34 -0700
commit2b8ad8807822b0b314798f99e1f656371d1fe2e8 (patch)
tree1f1d854c8156d2d79e3d71838f45f4e13a5adc1a /src/gallium/drivers/virgl
parentbcabf75ab7d044e516aa5f92e0b7dc49cfa29d7c (diff)
virgl: fix virgl_buffer_transfer_extend
Without setting hw_res, virgl_transfer_queue_extend never finds a match and always returns NULL. Signed-off-by: Chia-I Wu <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c
index 909deb774c7..436f705b9e5 100644
--- a/src/gallium/drivers/virgl/virgl_resource.c
+++ b/src/gallium/drivers/virgl/virgl_resource.c
@@ -554,6 +554,7 @@ static bool virgl_buffer_transfer_extend(struct pipe_context *ctx,
* Pessimestically falls back if a flush is required.
*/
dummy_trans.base.resource = resource;
+ dummy_trans.hw_res = vbuf->hw_res;
dummy_trans.base.usage = usage;
dummy_trans.base.box = *box;
dummy_trans.base.stride = vbuf->metadata.stride[0];