aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2019-07-10 07:33:29 (GMT)
committerChia-I Wu <olvaffe@gmail.com>2019-07-20 01:04:34 (GMT)
commit2b8ad8807822b0b314798f99e1f656371d1fe2e8 (patch)
tree1f1d854c8156d2d79e3d71838f45f4e13a5adc1a
parentbcabf75ab7d044e516aa5f92e0b7dc49cfa29d7c (diff)
downloadexternal_mesa3d-2b8ad8807822b0b314798f99e1f656371d1fe2e8.zip
external_mesa3d-2b8ad8807822b0b314798f99e1f656371d1fe2e8.tar.gz
external_mesa3d-2b8ad8807822b0b314798f99e1f656371d1fe2e8.tar.bz2
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 <olvaffe@gmail.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
-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 909deb7..436f705 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];