Commit b702ff53 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

virgl: simplify virgl_hw_set_index_buffer

Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <>
Reviewed-by: Mathias Fröhlich's avatarMathias Fröhlich <>
Tested-By: Gert Wollny's avatarGert Wollny <>
parent 00143a62
......@@ -447,10 +447,9 @@ static void virgl_set_blend_color(struct pipe_context *ctx,
virgl_encoder_set_blend_color(vctx, color);
static void virgl_hw_set_index_buffer(struct pipe_context *ctx,
static void virgl_hw_set_index_buffer(struct virgl_context *vctx,
struct virgl_indexbuf *ib)
struct virgl_context *vctx = virgl_context(ctx);
virgl_encoder_set_index_buffer(vctx, ib);
virgl_attach_res_index_buffer(vctx, ib);
......@@ -700,7 +699,7 @@ static void virgl_draw_vbo(struct pipe_context *ctx,
if (info.index_size)
virgl_hw_set_index_buffer(ctx, &ib);
virgl_hw_set_index_buffer(vctx, &ib);
virgl_encoder_draw_vbo(vctx, &info);
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