zink: catch zs u_blitter ops for draw markers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21962>
This commit is contained in:
committed by
Marge Bot
parent
c56b46638c
commit
af9bffd07d
@@ -835,9 +835,10 @@ zink_draw(struct pipe_context *pctx,
|
||||
CLAMP(ctx->vp_state.viewport_states[0].translate[2] + ctx->vp_state.viewport_states[0].scale[2],
|
||||
0, 1)
|
||||
};
|
||||
bool is_zs = util_format_is_depth_or_stencil(ctx->sampler_views[MESA_SHADER_FRAGMENT][0]->format);
|
||||
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),
|
||||
util_format_short_name((is_zs ? ctx->fb_state.zsbuf : ctx->fb_state.cbufs[0])->format),
|
||||
lround(viewport.width), lround(viewport.height));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user