Hi, this series is the third version of my patch set, which aims to improve the looks of Star Wars: Knights of the Old Republic (via Wine). The main feature is the implementation of GL_ATI_fragment_shader for all Gallium divers (though I could only test it with radeonsi, llvmpipe, and softpipe). If this extension is available, the game uses it quite extensively: perhaps the most notable effect is the animated water ripples, but it also fixes the grass, improves the specular on wet characters (e.g. the Selkath) and it is used for regular texturing almost everywhere. The game has two optional post-process effects that also depend on this extension: framebuffer effects (light bloom, distortion), and soft shadows.
See the screenshot gallery in http://lists.freedesktop.org/archives/mesa-dev/2015-December/103263.html AFAIK there are 4 games that can use ATI_fs: KotOR 1&2, Doom 3, Quake 4. Patches 1-3 implement ATI_fragment_shader, 4-6 are fixes for post-processing in KotOR After this series the following issues remain with post-processing in KotOR: - Enabling MSAA results in black screen when post-process is enabled - Post-process filters are extremely slow These are fixed by the following Wine patch: https://www.winehq.org/pipermail/wine-patches/2016-February/147513.html MM Miklós Máté (7): mesa: optionally associate a gl_program to ati_fragment_shader st/mesa: implement GL_ATI_fragment_shader st/mesa: enable GL_ATI_fragment_shader main: rework the compatibility check of visuals in glXMakeCurrent st/mesa: fix handling the fallback texture glx: fix the refcounting of dri drawables mesa: optimize out the realloc from glCopyTexImagexD() src/glx/dri_common.c | 3 +- src/glx/glx_pbuffer.c | 8 +- src/glx/glxcmds.c | 8 +- src/mesa/Makefile.sources | 1 + src/mesa/drivers/common/driverfuncs.c | 3 + src/mesa/main/atifragshader.c | 13 +- src/mesa/main/atifragshader.h | 1 + src/mesa/main/context.c | 42 +- src/mesa/main/dd.h | 7 +- src/mesa/main/mtypes.h | 1 + src/mesa/main/state.c | 14 +- src/mesa/main/teximage.c | 35 ++ src/mesa/main/texstate.c | 18 + src/mesa/main/texstate.h | 3 + src/mesa/program/program.h | 2 + src/mesa/state_tracker/st_atifs_to_tgsi.c | 726 ++++++++++++++++++++++++++++++ src/mesa/state_tracker/st_atifs_to_tgsi.h | 65 +++ src/mesa/state_tracker/st_atom_constbuf.c | 16 + src/mesa/state_tracker/st_atom_sampler.c | 6 +- src/mesa/state_tracker/st_atom_shader.c | 27 +- src/mesa/state_tracker/st_cb_drawpixels.c | 1 + src/mesa/state_tracker/st_cb_program.c | 36 +- src/mesa/state_tracker/st_extensions.c | 1 + src/mesa/state_tracker/st_program.c | 30 +- src/mesa/state_tracker/st_program.h | 7 + 25 files changed, 1032 insertions(+), 42 deletions(-) create mode 100644 src/mesa/state_tracker/st_atifs_to_tgsi.c create mode 100644 src/mesa/state_tracker/st_atifs_to_tgsi.h -- 2.7.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev