mesa: Add a helper function _mesa_get_min_invocations_per_fragment()
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 17 Oct 2013 00:22:18 +0000 (17:22 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:48 +0000 (16:01 -0700)
commit627b2692e916060f1cb72d5e254b63927961687d
tree44bd1a1aecc75eff2f4d2e2361d173a589d2dc0b
parente849511c781672487aec416708abd1166b3b4983
mesa: Add a helper function _mesa_get_min_invocations_per_fragment()

This function is used to test if we need to do per sample shading or
per fragment shading.

V2: Use MAX2() to make sure the function returns a number >= 1.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/program/program.c
src/mesa/program/program.h