mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-13 20:18:22 +02:00
zink: set surface->dt when updating swapchain
this otherwise re-creates swapchain surfaces on every frame and has a significant perf hit for no reason cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20613>
This commit is contained in:
parent
54088f4bb5
commit
b2739c9f00
1 changed files with 1 additions and 0 deletions
|
|
@ -465,6 +465,7 @@ zink_surface_swapchain_update(struct zink_context *ctx, struct zink_surface *sur
|
|||
surface->base.width = res->base.b.width0;
|
||||
surface->base.height = res->base.b.height0;
|
||||
init_surface_info(surface, res, &surface->ivci);
|
||||
surface->dt = res->obj->dt;
|
||||
}
|
||||
if (!surface->swapchain[res->obj->dt_idx]) {
|
||||
/* no current swapchain imageview exists: create it */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue