[Mesa-dev] [PATCH 3/4] st/mesa: Add support for ARB_post_depth_coverage

Lyude Paul lyude at redhat.com
Tue May 23 20:32:04 UTC 2017


Oh! Okay, I went to go add implicit enablement of early fragment tests
with this extension into mesa's GL plumbing and it looks like I
misspoke, we do already have something for this, from
src/compiler/glsl/linker.cpp:

static void
link_fs_inout_layout_qualifiers(struct gl_shader_program *prog,
                                struct gl_linked_shader *linked_shader,
                                struct gl_shader **shader_list,
                                unsigned num_shaders)
{
      /* unrelated stuff... */
      linked_shader->Program->info.fs.early_fragment_tests |=
         shader->EarlyFragmentTests || shader->PostDepthCoverage;
      linked_shader->Program->info.fs.inner_coverage |= shader-
>InnerCoverage;
      linked_shader->Program->info.fs.post_depth_coverage |=
         shader->PostDepthCoverage;

      linked_shader->Program->sh.fs.BlendSupport |= shader-
>BlendSupport;
   }
}

so we should already be all set with this.

-- 
Cheers,
	Lyude


More information about the mesa-dev mailing list