virgl: Fix typos.
authorVinson Lee <vlee@freedesktop.org>
Sat, 12 Dec 2020 03:52:30 +0000 (19:52 -0800)
committerVinson Lee <vlee@freedesktop.org>
Fri, 1 Jan 2021 02:04:44 +0000 (18:04 -0800)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8072>

src/gallium/drivers/virgl/virgl_driinfo.h.in
src/gallium/drivers/virgl/virgl_query.c
src/gallium/drivers/virgl/virgl_screen.c

index 6704e53..7a1fef7 100644 (file)
@@ -4,7 +4,7 @@
 //      the tweak name as define to virgl_protocol.h
 //   2. Add the tweak here with the appropriated default value
 //   3. Add the code to query the tweak in virgl_create_screen
-//   4. Add the code to send the tweek to the host in virgl_send_tweaks
+//   4. Add the code to send the tweak to the host in virgl_send_tweaks
 //   5. Implement the tweak in virglrenderer
 DRI_CONF_SECTION_MISCELLANEOUS
     DRI_CONF_GLES_EMULATE_BGRA(true)
index 38ede54..4d1eb3d 100644 (file)
@@ -194,7 +194,7 @@ static bool virgl_get_query_result(struct pipe_context *ctx,
 
       host_state = vs->vws->resource_map(vs->vws, query->buf->hw_res);
 
-      /* The resouce is idle and the result should be available at this point,
+      /* The resource is idle and the result should be available at this point,
        * unless we are dealing with an older host.  In that case,
        * VIRGL_CCMD_GET_QUERY_RESULT is not fenced, the buffer is not
        * coherent, and transfers are unsynchronized.  We have to repeatedly
index 80104b8..f287329 100644 (file)
@@ -814,7 +814,7 @@ fixup_formats(union virgl_caps *caps, struct virgl_supported_format_mask *mask)
    const size_t size = ARRAY_SIZE(mask->bitmask);
    for (int i = 0; i < size; ++i) {
       if (mask->bitmask[i] != 0)
-         return; /* we got some formats, we definately have a new protocol */
+         return; /* we got some formats, we definitely have a new protocol */
    }
 
    /* old protocol used; fall back to considering all sampleable formats valid