zink: don't assert geometryShader for IMG proprietary driver

The proprietary driver for Imagination Rogue-architecture GPUs does not
come with geometryShader support.

Change the assert for it to another if condition.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34183>
This commit is contained in:
Icenowy Zheng
2024-11-30 17:11:09 +08:00
committed by Marge Bot
parent 00a2ed60f8
commit 45d9d55cc1
+2 -3
View File
@@ -2845,10 +2845,9 @@ init_driver_workarounds(struct zink_screen *screen)
}
if (zink_driverid(screen) ==
VK_DRIVER_ID_IMAGINATION_PROPRIETARY) {
assert(screen->info.feats.features.geometryShader);
VK_DRIVER_ID_IMAGINATION_PROPRIETARY &&
screen->info.feats.features.geometryShader)
screen->driver_workarounds.no_linesmooth = true;
}
/* This is a workarround for the lack of
* gl_PointSize + glPolygonMode(..., GL_LINE), in the imagination