virgl: fix some indentation

no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24117>
This commit is contained in:
Mike Blumenkrantz 2023-07-05 09:43:08 -04:00 committed by Marge Bot
parent 6984e524f4
commit ea09370204

View file

@ -517,18 +517,18 @@ static void *virgl_create_vertex_elements_state(struct pipe_context *ctx,
for (int i = 0; i < num_elements; ++i) {
if (elements[i].instance_divisor) {
/* Virglrenderer doesn't deal with instance_divisor correctly if
* there isn't a 1:1 relationship between elements and bindings.
* So let's make sure there is, by duplicating bindings.
*/
for (int j = 0; j < num_elements; ++j) {
/* Virglrenderer doesn't deal with instance_divisor correctly if
* there isn't a 1:1 relationship between elements and bindings.
* So let's make sure there is, by duplicating bindings.
*/
for (int j = 0; j < num_elements; ++j) {
new_elements[j] = elements[j];
new_elements[j].vertex_buffer_index = j;
state->binding_map[j] = elements[j].vertex_buffer_index;
}
elements = new_elements;
state->num_bindings = num_elements;
break;
}
elements = new_elements;
state->num_bindings = num_elements;
break;
}
}