Bugzilla – Bug 58680
[IVB] Graphical glitches in 0 A.D
Last modified: 2013-02-21 15:36:33 UTC
0 A.D. beta 12 doesn't work that well it runs with graphical glitches and sometimes slows down.
Please see attachments.
Created attachment 72024 [details]
Created attachment 72025 [details]
Reproduced rendering failures (not exactly the same, but possibly related) here.
Author: Eric Anholt <firstname.lastname@example.org>
Date: Wed Feb 13 21:21:45 2013 -0800
i965/gen7: Set up all samplers even if samplers are sparsely used.
In GLSL, sampler indices are allocated contiguously from 0. But in the
case of ARB_fragment_program (and possibly fixed function), an app that
uses texture 0 and 2 will use sampler indices 0 and 2, so we were only
allocating space for samplers 0 and 1 and setting up sampler 0. We
would read garbage for sampler 2, resulting in flickering textures and
an angry simulator.
Fixes bad rendering in 0 A.D. and ETQW. This was fixed for pre-gen7 by
Reviewed-by: Kenneth Graunke <email@example.com>
NOTE: This is a candidate for stable branches.
Cherry-picked to the 9.0 branch: be7048477a2989bd11ab590c65ea1515f764a86c
It will be available in Mesa 9.0.3.