diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index c3e1e17900f..d251aa53ba3 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -5339,7 +5339,7 @@ zink_get_dummy_pipe_surface(struct zink_context *ctx, int samples_index) if (ctx->dummy_surface[samples_index]) { /* delete old surface if ETOOSMALL */ struct zink_resource *res = zink_resource(ctx->dummy_surface[samples_index]->texture); - if (res->base.b.width0 > size || res->base.b.height0 > size) { + if (res->base.b.width0 < size || res->base.b.height0 < size) { pipe_surface_release(&ctx->base, &ctx->dummy_surface[samples_index]); needs_null_init = !samples_index && ctx->di.null_fbfetch_init; if (!samples_index)