diff options
author | Erik Faye-Lund <[email protected]> | 2018-12-11 11:16:47 +0000 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-12-13 16:12:10 +0100 |
commit | b702ff537842f72a0f6a3a4a2c6608c52fce1004 (patch) | |
tree | 26c438c94dd3a353644f29bb1c5dfd455301c6dd | |
parent | 00143a62418687d388a0563b3044e2fd82d18e2e (diff) |
virgl: simplify virgl_hw_set_index_buffer
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Mathias Fröhlich <[email protected]>
Tested-By: Gert Wollny <[email protected]>
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index b03e9508c61..df6d9b83ffb 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -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, vctx->num_draws++; virgl_hw_set_vertex_buffers(vctx); if (info.index_size) - virgl_hw_set_index_buffer(ctx, &ib); + virgl_hw_set_index_buffer(vctx, &ib); virgl_encoder_draw_vbo(vctx, &info); |