zink: don't pre-init null fbfetch info
fbfetch is never used, so this just pointlessly wastes a bunch of vram Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27684>
This commit is contained in:
committed by
Marge Bot
parent
5fdbb0868a
commit
e032e7f6cc
@@ -5579,12 +5579,6 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||
ctx->di.db.texel_images[i][j].sType = VK_STRUCTURE_TYPE_DESCRIPTOR_ADDRESS_INFO_EXT;
|
||||
}
|
||||
}
|
||||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) {
|
||||
/* cache null fbfetch descriptor info */
|
||||
ctx->di.fbfetch.imageView = zink_get_dummy_surface(ctx, 0)->image_view;
|
||||
init_null_fbfetch(ctx);
|
||||
memset(&ctx->di.fbfetch, 0, sizeof(ctx->di.fbfetch));
|
||||
}
|
||||
|
||||
p_atomic_inc(&screen->base.num_contexts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user