zink: force 128 fs input components on intel drivers

the hardware supports it, the driver supports it, but the driver reports
a lower value due to subtracting some usage that we shouldn't exceed anyway

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9198>
This commit is contained in:
Mike Blumenkrantz
2021-02-22 14:42:49 -05:00
committed by Marge Bot
parent cdb9a4775b
commit 5d503bf783

View File

@@ -574,6 +574,12 @@ zink_get_shader_param(struct pipe_screen *pscreen,
max = screen->info.props.limits.maxGeometryInputComponents;
break;
case PIPE_SHADER_FRAGMENT:
/* intel drivers report fewer components, but it's a value that's compatible
* with what we need for GL, so we can still force a conformant value here
*/
if (screen->info.driver_props.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA_KHR ||
screen->info.driver_props.driverID == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS_KHR)
return 32;
max = screen->info.props.limits.maxFragmentInputComponents / 4;
break;
default: