zink: round geometry for u_blitter debug markers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 16 Mar 2023 17:34:46 +0000 (13:34 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Mar 2023 03:57:32 +0000 (03:57 +0000)
this otherwise gets weird values

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

src/gallium/drivers/zink/zink_draw.cpp

index ddff801..efea549 100644 (file)
@@ -838,7 +838,7 @@ zink_draw(struct pipe_context *pctx,
       marker = zink_cmd_debug_marker_begin(ctx, VK_NULL_HANDLE, "u_blitter(%s->%s, %dx%d)",
                                            util_format_short_name(ctx->sampler_views[MESA_SHADER_FRAGMENT][0]->format),
                                            util_format_short_name(ctx->fb_state.cbufs[0]->format),
-                                           viewport.width, viewport.height);
+                                           lround(viewport.width), lround(viewport.height));
    }
 
    bool needs_drawid = reads_drawid && zink_get_last_vertex_key(ctx)->push_drawid;