• Jason Ekstrand's avatar
    spirv: Work around the Doom shader bug · 6af4b0fd
    Jason Ekstrand authored
    Doom shipped with a broken version of GLSLang which handles samplers as
    function arguments in a way that isn't spec-compliant.  In particular,
    it creates a temporary local sampler variable and copies the sampler
    into it.  While Dave has had a hack patch out for a while that gets it
    working, we've never landed it because we've been hoping that a game
    update would come out with fixed shaders.  Unfortunately, no game update
    appears on to be on the horizon and I've found this issue in yet another
    application so I think we're stuck working around it.  Hopefully, we can
    delete this code one day.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99467
    Cc: "17.1" <mesa-stable@lists.freedesktop.org>
    Tested-by: Grazvydas Ignotas's avatarGrazvydas Ignotas <notasas@gmail.com>
    Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
    (cherry picked from commit 1bd0acab)
    6af4b0fd
Name
Last commit
Last update
..
glsl Loading commit data...
nir Loading commit data...
spirv Loading commit data...
.gitignore Loading commit data...
Android.glsl.gen.mk Loading commit data...
Android.glsl.mk Loading commit data...
Android.mk Loading commit data...
Android.nir.gen.mk Loading commit data...
Android.nir.mk Loading commit data...
Makefile.am Loading commit data...
Makefile.glsl.am Loading commit data...
Makefile.nir.am Loading commit data...
Makefile.sources Loading commit data...
SConscript Loading commit data...
SConscript.glsl Loading commit data...
SConscript.nir Loading commit data...
builtin_type_macros.h Loading commit data...
glsl_types.cpp Loading commit data...
glsl_types.h Loading commit data...
nir_types.cpp Loading commit data...
nir_types.h Loading commit data...
shader_enums.c Loading commit data...
shader_enums.h Loading commit data...
shader_info.h Loading commit data...