summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_statevars.h
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2013-10-02 18:02:20 -0700
committerAnuj Phogat <[email protected]>2013-11-01 16:01:47 -0700
commit0d69e8c813070696942ffbe6efa4dc5186422199 (patch)
treec08b4002383f51097c500dd0f7475da856f7515b /src/mesa/program/prog_statevars.h
parent77b440e42d8e7247c22959020bb087c63d298f2e (diff)
mesa: Pass number of samples as a program state variable
Number of samples will be required in fragment shader program by new GLSL builtin uniform "gl_NumSamples". V2: Use "state.numsamples" in place of "state.num.samples" Use _NEW_BUFFERS flag in place of _NEW_MULTISAMPLE Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Ken Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_statevars.h')
-rw-r--r--src/mesa/program/prog_statevars.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/prog_statevars.h b/src/mesa/program/prog_statevars.h
index ec22b7376de..23a9f48c32f 100644
--- a/src/mesa/program/prog_statevars.h
+++ b/src/mesa/program/prog_statevars.h
@@ -103,6 +103,8 @@ typedef enum gl_state_index_ {
STATE_TEXENV_COLOR,
+ STATE_NUM_SAMPLES, /* An integer, not a float like the other state vars */
+
STATE_DEPTH_RANGE,
STATE_VERTEX_PROGRAM,