The result of a framebuffer fetch from a multisample FBO is inherently
per-sample, so the spec requires at least those sections of the shader
that depend on the framebuffer fetch result to be executed once per
sample.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(key->persample_interp ||
(shader->info.system_values_read & (SYSTEM_BIT_SAMPLE_ID |
SYSTEM_BIT_SAMPLE_POS)) ||
- shader->info.fs.uses_sample_qualifier);
+ shader->info.fs.uses_sample_qualifier ||
+ shader->info.outputs_read);
prog_data->early_fragment_tests = shader->info.fs.early_fragment_tests;