diff options
author | Kenneth Graunke <[email protected]> | 2016-12-06 01:50:03 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-01-06 15:55:41 -0800 |
commit | a46bd79ee195d699b020a8dde3fda6eab4ece0d4 (patch) | |
tree | b6954346bd75964de4106d3abcc5925fbf6fe664 /src/mesa | |
parent | 5c580e64cc206ab160e1767c42e4d6c81f67da4d (diff) |
glsl: Support gl_TessLevelInner/Outer[] as TES input variables.
Upcoming reworks in i965 are going to make it easy to handle this
like any other input. Having it as a system value will just require
additional code for no benefit.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/mtypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 243c76ded14..dadedb145ad 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3641,6 +3641,12 @@ struct gl_constants bool GLSLOptimizeConservatively; /** + * True if gl_TessLevelInner/Outer[] in the TES should be inputs + * (otherwise, they're system values). + */ + bool GLSLTessLevelsAsInputs; + + /** * Always use the GetTransformFeedbackVertexCount() driver hook, rather * than passing the transform feedback object to the drawing function. */ |