summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_sampler.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-08-21 20:53:25 -0600
committerBrian Paul <[email protected]>2017-08-31 22:09:57 -0600
commit9eca7e0ddb58808af77c6f251f5d368ea328c894 (patch)
tree7f644449ad846af8bd1ddacd54e23998738ce7e7 /src/mesa/state_tracker/st_atom_sampler.c
parent1c4e6d7ca83578caf5212f7a484538cb1b4ae2a3 (diff)
st/mesa: only try to create 1x msaa surfaces for "fake" msaa drivers
For software drivers where we want "fake" msaa support for GL 3.x, we treat 1 sample as being msaa. For drivers with real msaa support, start format probing at 2x msaa. For drivers with fake msaa support, start format probing at 1x msaa. This also tweaks the MaxSamples code in st_init_extensions() so that we use MaxSamples=1 for fake msaa. This allows the format proble loops to run at least one iteration. This fixes a llvmpipe/VTK regression from commit 6839d3369905eb02151. And for drivers with fake msaa support, calls such as glTexImage2DMultisample(samples=1) will now succeed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102038 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102125 Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_sampler.c')
0 files changed, 0 insertions, 0 deletions