Lines Matching full:glu

87 void verifyLinkError(NegativeTestContext &ctx, const glu::ShaderProgram &program)  in verifyLinkError()
104 void verifyCompileError(NegativeTestContext &ctx, const glu::ShaderProgram &program, glu::ShaderTyp… in verifyCompileError()
123 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiT… in generateComputeShader()
124 const char *const shaderVersion = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in generateComputeShader()
125 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in generateComputeShader()
139 string genBuiltInSource(glu::ShaderType shaderType) in genBuiltInSource()
146 case glu::SHADERTYPE_VERTEX: in genBuiltInSource()
147 case glu::SHADERTYPE_FRAGMENT: in genBuiltInSource()
150 case glu::SHADERTYPE_COMPUTE: in genBuiltInSource()
154 case glu::SHADERTYPE_GEOMETRY: in genBuiltInSource()
159 case glu::SHADERTYPE_TESSELLATION_CONTROL: in genBuiltInSource()
164 case glu::SHADERTYPE_TESSELLATION_EVALUATION: in genBuiltInSource()
193 glu::ShaderProgram program( in exceed_uniform_block_limit()
195glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_uniform_block_limit()
212 glu::ShaderProgram program( in exceed_shader_storage_block_limit()
214glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_shader_storage_block_limit()
237 glu::ShaderProgram program( in exceed_texture_image_units_limit()
239glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_texture_image_units_limit()
279 glu::ShaderProgram program( in exceed_image_uniforms_limit()
281glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_image_uniforms_limit()
303 glu::ShaderProgram program( in exceed_shared_memory_size_limit()
305glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_shared_memory_size_limit()
327 glu::ShaderProgram program( in exceed_uniform_components_limit()
329glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_uniform_components_limit()
360 glu::ShaderProgram program( in exceed_atomic_counter_buffer_limit()
362glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_atomic_counter_buffer_limit()
387 glu::ShaderProgram program( in exceed_atomic_counters_limit()
389glu::ProgramSources() << glu::ComputeSource(generateComputeShader(ctx, shaderDecl.str(), shaderBod… in exceed_atomic_counters_limit()
398 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in program_not_active()
400 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in program_not_active()
401 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in program_not_active()
403 const glu::VertexSource vertSource(tcu::StringTemplate(vertexShaderSource).specialize(args)); in program_not_active()
404 … const glu::FragmentSource fragSource(tcu::StringTemplate(fragmentShaderSource).specialize(args)); in program_not_active()
406 glu::ProgramPipeline pipeline(ctx.getRenderContext()); in program_not_active()
408 glu::ShaderProgram vertProgram(ctx.getRenderContext(), glu::ProgramSources() in program_not_active()
409 … << glu::ProgramSeparable(true) << vertSource); in program_not_active()
410 glu::ShaderProgram fragProgram(ctx.getRenderContext(), glu::ProgramSources() in program_not_active()
411 … << glu::ProgramSeparable(true) << fragSource); in program_not_active()
466 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in invalid_program_query()
468 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in invalid_program_query()
469 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_program_query()
475 …const glu::ComputeSource compSource(tcu::StringTemplate(invalidComputeShaderSource).specialize(arg… in invalid_program_query()
476glu::ShaderProgram invalidComputeProgram(ctx.getRenderContext(), glu::ProgramSources() << compSour… in invalid_program_query()
496 … const glu::VertexSource vertSource(tcu::StringTemplate(vertexShaderSource).specialize(args)); in invalid_program_query()
497 … const glu::FragmentSource fragSource(tcu::StringTemplate(fragmentShaderSource).specialize(args)); in invalid_program_query()
498 glu::ShaderProgram graphicsPipelineProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_program_query()
520 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in invalid_dispatch_compute_indirect()
522 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in invalid_dispatch_compute_indirect()
523 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_dispatch_compute_indirect()
525 const glu::ComputeSource compSource(tcu::StringTemplate(computeShaderSource).specialize(args)); in invalid_dispatch_compute_indirect()
526 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_dispatch_compute_indirect()
616 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in invalid_maximum_work_group_counts()
618 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in invalid_maximum_work_group_counts()
619 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_maximum_work_group_counts()
621 const glu::ComputeSource compSource(tcu::StringTemplate(computeShaderSource).specialize(args)); in invalid_maximum_work_group_counts()
622 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_maximum_work_group_counts()
684 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiT… in invalid_maximum_work_group_sizes()
685 const char *const shaderVersion = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in invalid_maximum_work_group_sizes()
686 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_maximum_work_group_sizes()
712 const glu::ComputeSource compSource(compShaderSource.str()); in invalid_maximum_work_group_sizes()
713 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_maximum_work_group_sizes()
724 … (program.getProgramInfo().linkOk) && (program.getShaderInfo(glu::SHADERTYPE_COMPUTE).compileOk); in invalid_maximum_work_group_sizes()
737 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE); in invalid_maximum_work_group_sizes()
746 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiT… in invalid_layout_qualifiers()
747 const char *const shaderVersion = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in invalid_layout_qualifiers()
748 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_layout_qualifiers()
757 const glu::ComputeSource compSource(compShaderSource.str()); in invalid_layout_qualifiers()
758 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_layout_qualifiers()
775 const glu::ComputeSource compSource(compShaderSource.str()); in invalid_layout_qualifiers()
776 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_layout_qualifiers()
780 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE); in invalid_layout_qualifiers()
794 const glu::ComputeSource compSource(compShaderSource.str()); in invalid_layout_qualifiers()
795 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_layout_qualifiers()
799 verifyCompileError(ctx, program, glu::SHADERTYPE_COMPUTE); in invalid_layout_qualifiers()
803 …if (glu::isContextTypeES(ctx.getRenderContext().getType())) // for GL4.5 program will compile and … in invalid_layout_qualifiers()
819 const glu::ComputeSource compSource(compShaderSource.str()); in invalid_layout_qualifiers()
820 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() << compSource); in invalid_layout_qualifiers()
829 …testFailed = (program.getProgramInfo().linkOk) && (program.getShaderInfo(glu::SHADERTYPE_COMPUTE).… in invalid_layout_qualifiers()
844 if (glu::isContextTypeES(ctx.getRenderContext().getType())) in invalid_write_built_in_constants()
853 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in invalid_write_built_in_constants()
856 …args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_3… in invalid_write_built_in_constants()
857 … getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in invalid_write_built_in_constants()
868 …const glu::VertexSource vertSource(tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_VERTEX)).s… in invalid_write_built_in_constants()
869 const glu::FragmentSource fragSource( in invalid_write_built_in_constants()
870 tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_FRAGMENT)).specialize(args)); in invalid_write_built_in_constants()
871 const glu::TessellationControlSource tessCtrlSource( in invalid_write_built_in_constants()
872 … tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_TESSELLATION_CONTROL)).specialize(args)); in invalid_write_built_in_constants()
873 const glu::TessellationEvaluationSource tessEvalSource( in invalid_write_built_in_constants()
874 … tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_TESSELLATION_EVALUATION)).specialize(args)); in invalid_write_built_in_constants()
875 const glu::GeometrySource geometrySource( in invalid_write_built_in_constants()
876 tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_GEOMETRY)).specialize(args)); in invalid_write_built_in_constants()
877 const glu::ComputeSource computeSource( in invalid_write_built_in_constants()
878 tcu::StringTemplate(genBuiltInSource(glu::SHADERTYPE_COMPUTE)).specialize(args)); in invalid_write_built_in_constants()
880 glu::ShaderProgram vertProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
881 … << glu::ProgramSeparable(true) << vertSource); in invalid_write_built_in_constants()
882 glu::ShaderProgram fragProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
883 … << glu::ProgramSeparable(true) << fragSource); in invalid_write_built_in_constants()
884 glu::ShaderProgram tessCtrlProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
885 … << glu::ProgramSeparable(true) << tessCtrlSource); in invalid_write_built_in_constants()
886 glu::ShaderProgram tessEvalProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
887 … << glu::ProgramSeparable(true) << tessEvalSource); in invalid_write_built_in_constants()
888 glu::ShaderProgram geometryProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
889 … << glu::ProgramSeparable(true) << geometrySource); in invalid_write_built_in_constants()
890 glu::ShaderProgram computeProgram(ctx.getRenderContext(), glu::ProgramSources() in invalid_write_built_in_constants()
891 … << glu::ProgramSeparable(true) << computeSource); in invalid_write_built_in_constants()
895 verifyCompileError(ctx, vertProgram, glu::SHADERTYPE_VERTEX); in invalid_write_built_in_constants()
896 verifyCompileError(ctx, fragProgram, glu::SHADERTYPE_FRAGMENT); in invalid_write_built_in_constants()
897 verifyCompileError(ctx, tessCtrlProgram, glu::SHADERTYPE_TESSELLATION_CONTROL); in invalid_write_built_in_constants()
898 verifyCompileError(ctx, tessEvalProgram, glu::SHADERTYPE_TESSELLATION_EVALUATION); in invalid_write_built_in_constants()
899 verifyCompileError(ctx, geometryProgram, glu::SHADERTYPE_GEOMETRY); in invalid_write_built_in_constants()
900 verifyCompileError(ctx, computeProgram, glu::SHADERTYPE_COMPUTE); in invalid_write_built_in_constants()