nir: switch to a normal sampler for ARB program with not depth textures + drirc option for Penumbra
It is undefined behavior when an ARB assembly uses SHADOW2D target
with a texture in not depth format. In this case 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.
Replace the shadow sampler with a normal one here by recompiling the ARB program
Simple reproducer for this issue: https://gitlab.freedesktop.org/illia.a.polishchuk/shadow2d-arb-program-test
Issue 2
Penumbra game uses glCopyTexSubImage2D with multisampled FBO when bloom and ani-aliasing settings enabled which leads to a black screen
Created drirc workaround for this
Closes: #8425 (closed)
Signed-off-by: Illia Polishchuk illia.a.polishchuk@globallogic.com