Mesa (master): virgl: remove unused variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 7 17:25:10 UTC 2019


Module: Mesa
Branch: master
Commit: 55e4759c8da5eec71ca2f5ad2460a9ae7137ac39
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55e4759c8da5eec71ca2f5ad2460a9ae7137ac39

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Mar  6 14:43:15 2019 +0100

virgl: remove unused variable

This variable is now unused, so let's remove it.

Fixes: 9c4930946a5 (virgl: add encoder functions for new protocol)
Reviewed-by: Gurchetan Singh <gurchetansingh at chromium.org>

---

 src/gallium/drivers/virgl/virgl_encode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c
index ad7842f0f37..a3029e6f213 100644
--- a/src/gallium/drivers/virgl/virgl_encode.c
+++ b/src/gallium/drivers/virgl/virgl_encode.c
@@ -1108,7 +1108,6 @@ void virgl_encode_transfer(struct virgl_screen *vs, struct virgl_cmd_buf *buf,
                            struct virgl_transfer *trans, uint32_t direction)
 {
    uint32_t command;
-   struct virgl_resource *res = virgl_resource(trans->base.resource);
    command = VIRGL_CMD0(VIRGL_CCMD_TRANSFER3D, 0, VIRGL_TRANSFER3D_SIZE);
    virgl_encoder_write_dword(buf, command);
    virgl_encoder_transfer3d_common(vs, buf, trans);




More information about the mesa-commit mailing list