virgl: remove unused variable
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 6 Mar 2019 13:43:15 +0000 (14:43 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 7 Mar 2019 17:24:54 +0000 (17:24 +0000)
This variable is now unused, so let's remove it.

Fixes: 9c4930946a5 (virgl: add encoder functions for new protocol)
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_encode.c

index ad7842f0f37a84b50d83f45c35eaf909bc275eee..a3029e6f213d20cf524c1a37d24454933fcb8af8 100644 (file)
@@ -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);