From: Chia-I Wu Date: Wed, 10 Jul 2019 07:33:29 +0000 (-0700) Subject: virgl: fix virgl_buffer_transfer_extend X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b8ad8807822b0b314798f99e1f656371d1fe2e8;p=mesa.git 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 --- 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];