mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
glsl: don't demote tess control shader outputs
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3a4b87f26d
commit
41acdae2e9
1 changed files with 5 additions and 1 deletions
|
|
@ -1461,8 +1461,12 @@ assign_varying_locations(struct gl_context *ctx,
|
|||
/* If a matching input variable was found, add this ouptut (and the
|
||||
* input) to the set. If this is a separable program and there is no
|
||||
* consumer stage, add the output.
|
||||
*
|
||||
* Always add TCS outputs. They are shared by all invocations
|
||||
* within a patch and can be used as shared memory.
|
||||
*/
|
||||
if (input_var || (prog->SeparateShader && consumer == NULL)) {
|
||||
if (input_var || (prog->SeparateShader && consumer == NULL) ||
|
||||
producer->Type == GL_TESS_CONTROL_SHADER) {
|
||||
matches.record(output_var, input_var);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue