virgl: fix some indentation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 5 Jul 2023 13:43:08 +0000 (09:43 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Aug 2023 01:23:25 +0000 (01:23 +0000)
no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24117>

src/gallium/drivers/virgl/virgl_context.c

index a5f9f99..1474823 100644 (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;
       }
    }