drirc: set `zink_emulate_point_smooth` for Quake II
authorantonino <antonino.maniscalco@collabora.com>
Tue, 7 Mar 2023 14:19:27 +0000 (15:19 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 9 Mar 2023 04:38:24 +0000 (04:38 +0000)
Quake II uses GL_POINT_SMOOTH to render particles.
Zink currently requires `zink_emulate_point_smooth` to support that feature.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21731>

src/util/00-mesa-defaults.conf

index 386ffa6..3dec358 100644 (file)
@@ -966,6 +966,17 @@ TODO: document the other workarounds.
             <!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/8333 -->
             <option name="mesa_glthread" value="false"/>
         </application>
+
+        <!-- GL_POINT_SMOOTH is used in Quake II to render particles -->
+        <application name="Quake II" executable="quake2-engine">
+            <option name="zink_emulate_point_smooth" value="true"/>
+        </application>
+        <application name="Quake II (yamagi)" executable="yamagi-quake2">
+            <option name="zink_emulate_point_smooth" value="true"/>
+        </application>
+        <application name="Quake II (wine)" executable="quake2.exe">
+            <option name="zink_emulate_point_smooth" value="true"/>
+        </application>
     </device>
     <device driver="iris">
         <application name="Middle Earth: Shadow of Mordor" executable="ShadowOfMordor">