diff options
author | Kenneth Graunke <[email protected]> | 2016-09-24 17:59:55 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-01-07 22:22:28 -0800 |
commit | a4fd84ef5f247f50a3683ecdf7f9d801a6e3cf15 (patch) | |
tree | dcf2a26e9a8cde7d6bc77fee2aaf8b655fe11adc /src/compiler/glsl/linker.cpp | |
parent | 9bb89175e6487186389b69e8ee0b587d38ed8015 (diff) |
mesa: Introduce a compiler enum for tessellation spacing.
It feels weird using GL_* enums in a Vulkan driver.
v2: Fix the TESS_SPACING -> PIPE_TESS_SPACING conversion.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index d4a484fdea0..bf902bd862a 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -1721,7 +1721,7 @@ link_tes_in_layout_qualifiers(struct gl_shader_program *prog, unsigned num_shaders) { linked_shader->info.TessEval.PrimitiveMode = PRIM_UNKNOWN; - linked_shader->info.TessEval.Spacing = 0; + linked_shader->info.TessEval.Spacing = TESS_SPACING_UNSPECIFIED; linked_shader->info.TessEval.VertexOrder = 0; linked_shader->info.TessEval.PointMode = -1; @@ -1804,8 +1804,8 @@ link_tes_in_layout_qualifiers(struct gl_shader_program *prog, return; } - if (linked_shader->info.TessEval.Spacing == 0) - linked_shader->info.TessEval.Spacing = GL_EQUAL; + if (linked_shader->info.TessEval.Spacing == TESS_SPACING_UNSPECIFIED) + linked_shader->info.TessEval.Spacing = TESS_SPACING_EQUAL; if (linked_shader->info.TessEval.VertexOrder == 0) linked_shader->info.TessEval.VertexOrder = GL_CCW; |