Commit 00143a62 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

virgl: simplify virgl_hw_set_vertex_buffers

Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Mathias Fröhlich's avatarMathias Fröhlich <Mathias.Froehlich@web.de>
Tested-By: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
parent 0991085f
......@@ -425,10 +425,8 @@ static void virgl_set_vertex_buffers(struct pipe_context *ctx,
vctx->vertex_array_dirty = TRUE;
}
static void virgl_hw_set_vertex_buffers(struct pipe_context *ctx)
static void virgl_hw_set_vertex_buffers(struct virgl_context *vctx)
{
struct virgl_context *vctx = virgl_context(ctx);
if (vctx->vertex_array_dirty) {
virgl_encoder_set_vertex_buffers(vctx, vctx->num_vertex_buffers, vctx->vertex_buffer);
virgl_attach_res_vertex_buffers(vctx);
......@@ -700,7 +698,7 @@ static void virgl_draw_vbo(struct pipe_context *ctx,
u_upload_unmap(vctx->uploader);
vctx->num_draws++;
virgl_hw_set_vertex_buffers(ctx);
virgl_hw_set_vertex_buffers(vctx);
if (info.index_size)
virgl_hw_set_index_buffer(ctx, &ib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment