diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 38 | ||||
-rw-r--r-- | src/mesa/main/shaderapi.c | 8 |
2 files changed, 0 insertions, 46 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e8eddce0603..274dbd534b4 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1933,10 +1933,6 @@ struct gl_program GLbitfield ShadowSamplers; /**< Texture units used for shadow sampling. */ GLbitfield ExternalSamplersUsed; /**< Texture units used for samplerExternalOES */ - /* Vertex and geometry shaders fields */ - unsigned ClipDistanceArraySize; - unsigned CullDistanceArraySize; - /* Fragement shader only fields */ GLboolean OriginUpperLeft; GLboolean PixelCenterInteger; @@ -2748,50 +2744,16 @@ struct gl_shader_program enum gl_frag_depth_layout FragDepthLayout; /** - * Tessellation Evaluation shader state from layout qualifiers. - */ - struct { - /** - * True if gl_ClipDistance is written to. Copied into - * gl_program by _mesa_copy_linked_program_data(). - */ - GLuint ClipDistanceArraySize; /**< Size of the gl_ClipDistance array, or - 0 if not present. */ - GLuint CullDistanceArraySize; /**< Size of the gl_CullDistance array, or - 0 if not present. */ - } TessEval; - - /** * Geometry shader state - copied into gl_program by * _mesa_copy_linked_program_data(). */ struct { GLint VerticesIn; - /** - * True if gl_ClipDistance is written to. Copied into - * gl_program by _mesa_copy_linked_program_data(). - */ - GLuint ClipDistanceArraySize; /**< Size of the gl_ClipDistance array, or - 0 if not present. */ - GLuint CullDistanceArraySize; /**< Size of the gl_CullDistance array, or - 0 if not present. */ bool UsesEndPrimitive; bool UsesStreams; } Geom; - /** Vertex shader state */ - struct { - /** - * True if gl_ClipDistance is written to. Copied into gl_program - * by _mesa_copy_linked_program_data(). - */ - GLuint ClipDistanceArraySize; /**< Size of the gl_ClipDistance array, or - 0 if not present. */ - GLuint CullDistanceArraySize; /**< Size of the gl_CullDistance array, or - 0 if not present. */ - } Vert; - /** * Compute shader state - copied into gl_program by * _mesa_copy_linked_program_data(). diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 8ad4e36a309..889ac0fad86 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2202,17 +2202,11 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src, dst->info.separate_shader = src->SeparateShader; switch (dst_sh->Stage) { - case MESA_SHADER_VERTEX: - dst->ClipDistanceArraySize = src->Vert.ClipDistanceArraySize; - dst->CullDistanceArraySize = src->Vert.CullDistanceArraySize; - break; case MESA_SHADER_TESS_EVAL: { dst->info.tess.primitive_mode = dst_sh->info.TessEval.PrimitiveMode; dst->info.tess.spacing = dst_sh->info.TessEval.Spacing; dst->info.tess.ccw = dst_sh->info.TessEval.VertexOrder == GL_CCW; dst->info.tess.point_mode = dst_sh->info.TessEval.PointMode; - dst->ClipDistanceArraySize = src->TessEval.ClipDistanceArraySize; - dst->CullDistanceArraySize = src->TessEval.CullDistanceArraySize; break; } case MESA_SHADER_GEOMETRY: { @@ -2221,8 +2215,6 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src, dst->info.gs.invocations = dst_sh->info.Geom.Invocations; dst->info.gs.input_primitive = dst_sh->info.Geom.InputType; dst->info.gs.output_primitive = dst_sh->info.Geom.OutputType; - dst->ClipDistanceArraySize = src->Geom.ClipDistanceArraySize; - dst->CullDistanceArraySize = src->Geom.CullDistanceArraySize; dst->info.gs.uses_end_primitive = src->Geom.UsesEndPrimitive; dst->info.gs.uses_streams = src->Geom.UsesStreams; break; |