Skip to content

arb_shadow: fallback to a not shadow sampler for a not depth texture

Illia Polishchuk requested to merge GL/piglit:arb_shadow_not_depth_test into main

It is undefined behavior when an ARB assembly or shadow2d GLSL func uses SHADOW2D target with a texture in not depth format.

In this case AMD and NVIDIA automatically replaces SHADOW sampler with a normal sampler and some games like Penumbra Overture which abuses this UB works fine but breaks with mesa.

mesa!22147 (merged)

Signed-off-by: Illia Polishchuk illia.a.polishchuk@globallogic.com

Merge request reports

Loading