diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.h b/src/gallium/drivers/virgl/virgl_encode.h index 78d4194683b..02c032d673e 100644 --- a/src/gallium/drivers/virgl/virgl_encode.h +++ b/src/gallium/drivers/virgl/virgl_encode.h @@ -39,6 +39,13 @@ struct virgl_surface { uint32_t handle; }; +struct virgl_indexbuf { + unsigned offset; + unsigned index_size; /**< size of an index, in bytes */ + struct pipe_resource *buffer; /**< the actual buffer */ + const void *user_buffer; /**< pointer to a user buffer if buffer == NULL */ +}; + static inline struct virgl_surface *virgl_surface(struct pipe_surface *surf) { return (struct virgl_surface *)surf; @@ -167,7 +174,7 @@ int virgl_encode_bind_sampler_states(struct virgl_context *ctx, uint32_t *handles); int virgl_encoder_set_index_buffer(struct virgl_context *ctx, - const struct pipe_index_buffer *ib); + const struct virgl_indexbuf *ib); uint32_t virgl_object_assign_handle(void); |