projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e1dd2
)
glsl: add gl_SampleMaskIn[] builtin
author
Chris Forbes
<chrisf@ijw.co.nz>
Sun, 8 Dec 2013 07:03:25 +0000
(20:03 +1300)
committer
Chris Forbes
<chrisf@ijw.co.nz>
Sat, 14 Dec 2013 03:24:22 +0000
(16:24 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_variables.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/builtin_variables.cpp
b/src/glsl/builtin_variables.cpp
index bdcd11f2282e9f1a292c7bbcc7fb45c1c62b64cf..0a3f129f8d565982879a8a1f04f314b22c8da9ef 100644
(file)
--- a/
src/glsl/builtin_variables.cpp
+++ b/
src/glsl/builtin_variables.cpp
@@
-858,6
+858,10
@@
builtin_variable_generator::generate_fs_special_vars()
*/
add_output(FRAG_RESULT_SAMPLE_MASK, array(int_t, 1), "gl_SampleMask");
}
+
+ if (state->ARB_gpu_shader5_enable) {
+ add_system_value(SYSTEM_VALUE_SAMPLE_MASK_IN, array(int_t, 1), "gl_SampleMaskIn");
+ }
}