nv50: remove unused variable
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 26 Mar 2020 10:50:10 +0000 (11:50 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 18:20:20 +0000 (18:20 +0000)
This isn't used anymore, so let's get rid of it to silence a warning.

Fixes: c574cda3c6a ("util: Make helper functions for pack/unpacking pixel rows.")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4330>

src/gallium/drivers/nouveau/nv50/nv50_vbo.c

index da4a0171ac6936954e62f769ec6ea0db499665b2..a8e2a1b3b27b108e9299b5d6e8f82bf8afadd889 100644 (file)
@@ -144,8 +144,6 @@ nv50_emit_vtxattr(struct nv50_context *nv50, struct pipe_vertex_buffer *vb,
    const void *data = (const uint8_t *)vb->buffer.user + ve->src_offset;
    float v[4];
    const unsigned nc = util_format_get_nr_components(ve->src_format);
-   const struct util_format_description *desc =
-      util_format_description(ve->src_format);
 
    assert(vb->is_user_buffer);