Files
mesa/src/util
Illia Polishchuk a2d40c09b7 zink, drirc: Add Borderlands 2 workaround to fix spir-v 1.6 translated discard
The game expects HLSL discard behavour

But it fails only on Zink because GLSL discard translates to
nir_intrinsic_discard (BRW_PREDICATE_ALIGN1_ANY4H in native Intel asm)
but Zink replaces it with OpTerminateInvocation SPIR-V and it translates to
nir_intrinsic_terminate (BRW_PREDICATE_NORMAL in native Intel asm)

Bisected commit in ZINK: bd816084

On AMD it works because they enabled the
glsl_correct_derivatives_after_discard by default: !10522 (17861aff)

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9205
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23694>
2023-06-20 08:48:02 +00:00
..
2023-05-29 21:06:12 +00:00
2022-04-22 19:38:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2022-06-02 13:09:16 +00:00
2023-01-19 03:25:55 +00:00
2023-03-05 16:31:51 +00:00
2022-11-14 20:13:20 +00:00
2023-04-24 22:42:04 +00:00
2023-04-24 22:42:04 +00:00
2023-04-22 01:28:38 +00:00
2023-04-22 01:28:38 +00:00
2023-02-12 17:11:16 +00:00
2023-03-26 00:16:26 +00:00
2023-03-26 00:16:26 +00:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2023-05-23 19:04:28 +00:00
2019-03-14 22:41:08 +00:00
2023-05-19 16:30:44 +00:00
2022-08-04 23:53:49 +00:00
2022-11-24 04:33:07 +00:00
2022-12-17 19:14:12 +00:00
2022-12-17 19:14:12 +00:00