From 2b8ad8807822b0b314798f99e1f656371d1fe2e8 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 10 Jul 2019 00:33:29 -0700 Subject: [PATCH] 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 Reviewed-by: Gurchetan Singh --- src/gallium/drivers/virgl/virgl_resource.c | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.30.2