Created attachment 137985 [details]
A video of map dm-curse4
With recent mesa versions some textures in UT2004 are blinking while player moves. You can see this behavior on any map that uses multiple texture layers. I've made a video of DM-Curse4 to show it. I've also tried to record an apitrace, but it fails with segfault.
It used to work fine few years ago.
Radeon HD7950, Mesa-git e30a165be274e399787ba7d44171567f3d93dcac, llvm 7.0 r327106
64-bit version of UT2004 for linux
I'm not sure if it's specific to radeonsi, i've tested with llvmpipe and got same result.
f314a532fdc7af8381586144d2631d9968331f05 is the first bad commit
Author: Samuel Pitoiset <firstname.lastname@example.org>
Date: Wed Jun 21 11:31:43 2017 +0200
mesa: do not trigger _NEW_TEXTURE_STATE in glActiveTexture()
This looks like useless because gl_context::Texture::CurrentUnit
is not used by _mesa_update_texture_state() and friends.
Signed-off-by: Samuel Pitoiset <email@example.com>
Reviewed-by: Brian Paul <firstname.lastname@example.org>
:040000 040000 c2a46b6dcce50edf810147e07de977f38d33533a 606c977b6357381074d205daf2815ebb93da1029 M src
Adding back the FLUSH_VERTICES fixes the issue.
I have pushed a revert.