summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program.h
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2013-10-16 17:22:18 -0700
committerAnuj Phogat <[email protected]>2013-11-01 16:01:48 -0700
commit627b2692e916060f1cb72d5e254b63927961687d (patch)
tree44bd1a1aecc75eff2f4d2e2361d173a589d2dc0b /src/mesa/program/program.h
parente849511c781672487aec416708abd1166b3b4983 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r--src/mesa/program/program.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h
index 34965ab991d..353ccab4789 100644
--- a/src/mesa/program/program.h
+++ b/src/mesa/program/program.h
@@ -187,6 +187,9 @@ _mesa_valid_register_index(const struct gl_context *ctx,
extern void
_mesa_postprocess_program(struct gl_context *ctx, struct gl_program *prog);
+extern GLint
+_mesa_get_min_invocations_per_fragment(struct gl_context *ctx,
+ const struct gl_fragment_program *prog);
static inline GLuint
_mesa_program_target_to_index(GLenum v)