mesa: Pass number of samples as a program state variable
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 3 Oct 2013 01:02:20 +0000 (18:02 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:47 +0000 (16:01 -0700)
commit0d69e8c813070696942ffbe6efa4dc5186422199
treec08b4002383f51097c500dd0f7475da856f7515b
parent77b440e42d8e7247c22959020bb087c63d298f2e
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 <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Reviewed-by: Ken Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/program/prog_statevars.c
src/mesa/program/prog_statevars.h