zink: fix coverage check for texture clears
this wasn't actively harmful, but it was potentially differently-performant Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17366>
This commit is contained in:
parent
b33f041810
commit
04a5471b5e
|
@ -403,7 +403,7 @@ zink_clear_texture(struct pipe_context *pctx,
|
||||||
struct zink_context *ctx = zink_context(pctx);
|
struct zink_context *ctx = zink_context(pctx);
|
||||||
struct zink_resource *res = zink_resource(pres);
|
struct zink_resource *res = zink_resource(pres);
|
||||||
struct u_rect region = zink_rect_from_box(box);
|
struct u_rect region = zink_rect_from_box(box);
|
||||||
bool needs_rp = !zink_blit_region_fills(region, pres->width0, pres->height0) || ctx->render_condition_active;
|
bool needs_rp = !zink_blit_region_fills(region, u_minify(pres->width0, level), u_minify(pres->height0, level)) || ctx->render_condition_active;
|
||||||
struct pipe_surface *surf = NULL;
|
struct pipe_surface *surf = NULL;
|
||||||
|
|
||||||
if (res->aspect & VK_IMAGE_ASPECT_COLOR_BIT) {
|
if (res->aspect & VK_IMAGE_ASPECT_COLOR_BIT) {
|
||||||
|
|
Loading…
Reference in New Issue