diff options
author | Dave Airlie <[email protected]> | 2017-07-25 16:09:40 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-07-27 16:10:07 +1000 |
commit | c4652a0a5b5eef32f31baa1187ecd2612ac1009d (patch) | |
tree | 5d073a98b84652e056d9a17e23c6c205d89a774f /src/gallium/drivers | |
parent | 57132d126f2e129fc2959dcc2c0a8126389d07ba (diff) |
virgl: encode index buffer offset.
Fixes arb_vertex_buffer_object-combined-vertex-index
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 3c8a0f46811..ee68fe068f5 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -409,7 +409,7 @@ int virgl_encoder_set_index_buffer(struct virgl_context *ctx, virgl_encoder_write_res(ctx, res); if (ib) { virgl_encoder_write_dword(ctx->cbuf, ib->index_size); - virgl_encoder_write_dword(ctx->cbuf, 0); + virgl_encoder_write_dword(ctx->cbuf, ib->offset); } return 0; } |