diff options
author | Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com> | 2023-04-12 11:13:18 +0530 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-08-11 06:37:22 +0000 |
commit | 973e6f3be095eb203671826e440392ba376afb36 (patch) | |
tree | f03ca71ddee94b5dce3a028a4cde7333fb4fca3f /src/gallium/drivers/i915 | |
parent | e0da62c0e96ff963a77b527d702c471be402b88d (diff) |
gallium: remove start_slot parameter from pipe_context::set_vertex_buffers
This patch removes start_slot from set_vertex_buffers() as suggested in
https://gitlab.freedesktop.org/mesa/mesa/-/issues/8142
compilation testing:
all gallium drivers, nine frontend compilation has been tested.
d3d10umd compilation has not been tested
driver, frontend testing:
only llvmpipe and radeonsi driver was tested running game
only the nine frontend changes are complex. All other changes are easy.
nine front end was using start slot and also using multi context.
nine frontend code changes:
In update_vertex_elements() and update_vertex_buffers(), the vertex
buffers or streams are ordered removing the holes. In update_vertex_elements()
the vertex_buffer_index is updated for pipe driver to match the ordered list.
v2: remove start_slot usage code from Marek (Marek Olšák)
v3: nine stream number holes mask code from Axel (Axel Davy)
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> (except nine, which is Ab)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22436>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index df17e05e4b5..fd53daa1a27 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -956,7 +956,7 @@ i915_delete_rasterizer_state(struct pipe_context *pipe, void *raster) } static void -i915_set_vertex_buffers(struct pipe_context *pipe, unsigned start_slot, +i915_set_vertex_buffers(struct pipe_context *pipe, unsigned count, unsigned unbind_num_trailing_slots, bool take_ownership, const struct pipe_vertex_buffer *buffers) @@ -965,11 +965,11 @@ i915_set_vertex_buffers(struct pipe_context *pipe, unsigned start_slot, struct draw_context *draw = i915->draw; util_set_vertex_buffers_count(i915->vertex_buffers, &i915->nr_vertex_buffers, - buffers, start_slot, count, + buffers, count, unbind_num_trailing_slots, take_ownership); /* pass-through to draw module */ - draw_set_vertex_buffers(draw, start_slot, count, unbind_num_trailing_slots, + draw_set_vertex_buffers(draw, count, unbind_num_trailing_slots, buffers); } |