mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
Revert "zink/kopper: Add extra swapchain images for Venus"
This reverts commit 10f8240caf.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21963>
This commit is contained in:
parent
04387269dd
commit
9678becbf9
3 changed files with 1 additions and 9 deletions
|
|
@ -261,9 +261,7 @@ kopper_CreateSwapchain(struct zink_screen *screen, struct kopper_displaytarget *
|
|||
cswap->scci.clipped = VK_TRUE;
|
||||
}
|
||||
cswap->scci.presentMode = cdt->present_mode;
|
||||
cswap->scci.minImageCount = cdt->caps.minImageCount + screen->driver_workarounds.extra_swapchain_images;
|
||||
if (cdt->caps.maxImageCount != 0)
|
||||
cswap->scci.minImageCount = MIN2(cswap->scci.minImageCount, cdt->caps.maxImageCount);
|
||||
cswap->scci.minImageCount = cdt->caps.minImageCount;
|
||||
cswap->scci.preTransform = cdt->caps.currentTransform;
|
||||
if (cdt->formats[1])
|
||||
cswap->scci.pNext = &cdt->format_list;
|
||||
|
|
|
|||
|
|
@ -2454,11 +2454,6 @@ init_driver_workarounds(struct zink_screen *screen)
|
|||
screen->driver_workarounds.no_linesmooth = true;
|
||||
}
|
||||
|
||||
screen->driver_workarounds.extra_swapchain_images = 0;
|
||||
if (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_VENUS) {
|
||||
screen->driver_workarounds.extra_swapchain_images = 1;
|
||||
}
|
||||
|
||||
/* This is a workarround for the lack of
|
||||
* gl_PointSize + glPolygonMode(..., GL_LINE), in the imagination
|
||||
* proprietary driver.
|
||||
|
|
|
|||
|
|
@ -1416,7 +1416,6 @@ struct zink_screen {
|
|||
bool needs_zs_shader_swizzle;
|
||||
unsigned z16_unscaled_bias;
|
||||
unsigned z24_unscaled_bias;
|
||||
unsigned extra_swapchain_images;
|
||||
} driver_workarounds;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue