mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 07:00:27 +01:00
zink: fix broken comparison for dummy pipe surface sizing
this should create a new surface if the existing one is too small,
not if it is too big
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34933>
(cherry picked from commit ef63e3e4d2)
This commit is contained in:
parent
ae1d465543
commit
dbb360f5d1
2 changed files with 2 additions and 2 deletions
|
|
@ -3084,7 +3084,7 @@
|
|||
"description": "zink: fix broken comparison for dummy pipe surface sizing",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue