Module: Mesa
Branch: main
Commit: a5930b4d4197032c6c229fe1de3a2ce4af8093ba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5930b4d4197032c6c229fe1de3a2ce4af8093ba

Author: Mary Guillemard <[email protected]>
Date:   Thu Dec  7 10:07:33 2023 +0100

zink: Force 128 fs input components under Venus for Intel

Apply the same workaround as for Intel vk drivers by detecting Intel vendor ID.

Signed-off-by: Mary Guillemard <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26562>

---

 src/gallium/drivers/zink/zink_screen.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c 
b/src/gallium/drivers/zink/zink_screen.c
index 97af50f68c0..6c2ee794e2e 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1151,7 +1151,9 @@ zink_get_shader_param(struct pipe_screen *pscreen,
           * 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 ||
-             screen->info.driver_props.driverID == 
VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS)
+             screen->info.driver_props.driverID == 
VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS ||
+             (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_VENUS
+              && screen->info.props.vendorID == 0x8086))
             return 32;
          max = screen->info.props.limits.maxFragmentInputComponents / 4;
          break;

Reply via email to