diff options
author | Marek Olšák <[email protected]> | 2020-02-10 20:19:37 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-28 00:53:45 +0000 |
commit | 0c9850e55d11447d79bba1ad070f57ed52e85c96 (patch) | |
tree | 713e1df8a53563eac27b693eb99bc61e992af56b /src/mesa/vbo | |
parent | f55ae2cdbe8eca6a28c9f1a2d8e1a637e9b61103 (diff) |
mesa/i965: remove _mesa_prim::indirect_offset
Only i965 was using it.
Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo.h | 3 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_primitive_restart.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index 17d668e386f..a03a4cec70b 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -97,7 +97,8 @@ vbo_sw_primitive_restart(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, - struct gl_buffer_object *indirect); + struct gl_buffer_object *indirect, + GLsizeiptr indirect_offset); const struct gl_array_attributes* diff --git a/src/mesa/vbo/vbo_primitive_restart.c b/src/mesa/vbo/vbo_primitive_restart.c index 4f380b6dcba..b4b3cdf8d4c 100644 --- a/src/mesa/vbo/vbo_primitive_restart.c +++ b/src/mesa/vbo/vbo_primitive_restart.c @@ -164,7 +164,8 @@ vbo_sw_primitive_restart(struct gl_context *ctx, const struct _mesa_prim *prims, GLuint nr_prims, const struct _mesa_index_buffer *ib, - struct gl_buffer_object *indirect) + struct gl_buffer_object *indirect, + GLsizeiptr indirect_offset) { GLuint prim_num; struct _mesa_prim new_prim; @@ -196,7 +197,7 @@ vbo_sw_primitive_restart(struct gl_context *ctx, new_prim = prims[0]; indirect_params = (const uint32_t *) ADD_POINTERS(indirect->Mappings[MAP_INTERNAL].Pointer, - new_prim.indirect_offset); + indirect_offset); new_prim.count = indirect_params[0]; new_prim.num_instances = indirect_params[1]; |