Lines Matching refs:glsl_hdr
3991 static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr) in emit_header() argument
3996 STRCAT_WITH_RET(glsl_hdr, buf); in emit_header()
3998 … STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_texture_storage_multisample_2d_array : require\n"); in emit_header()
4001 STRCAT_WITH_RET(glsl_hdr, "#extension GL_EXT_geometry_shader : require\n"); in emit_header()
4003 STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_geometry_point_size : enable\n"); in emit_header()
4009 STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_tessellation_shader : require\n"); in emit_header()
4010 STRCAT_WITH_RET(glsl_hdr, "#extension GL_OES_tessellation_point_size : enable\n"); in emit_header()
4013 PAD_GPU_SHADER5(glsl_hdr); in emit_header()
4014 STRCAT_WITH_RET(glsl_hdr, "precision highp float;\n"); in emit_header()
4015 STRCAT_WITH_RET(glsl_hdr, "precision highp int;\n"); in emit_header()
4019 STRCAT_WITH_RET(glsl_hdr, "#version 330\n"); in emit_header()
4020 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_compute_shader : require\n"); in emit_header()
4026 STRCAT_WITH_RET(glsl_hdr, "#version 150\n"); in emit_header()
4028 STRCAT_WITH_RET(glsl_hdr, "#version 140\n"); in emit_header()
4030 STRCAT_WITH_RET(glsl_hdr, "#version 130\n"); in emit_header()
4034 PAD_GPU_SHADER5(glsl_hdr); in emit_header()
4039 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_tessellation_shader : require\n"); in emit_header()
4042 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_explicit_attrib_location : require\n"); in emit_header()
4044 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_fragment_coord_conventions : require\n"); in emit_header()
4047 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_uniform_buffer_object : require\n"); in emit_header()
4050 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_cull_distance : require\n"); in emit_header()
4052 STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_shader_storage_buffer_object : require\n"); in emit_header()
4060 STRCAT_WITH_RET(glsl_hdr, buf); in emit_header()
4065 return glsl_hdr; in emit_header()
4139 static void *emit_sampler_decl(struct dump_ctx *ctx, char *glsl_hdr, in emit_sampler_decl() argument
4162 STRCAT_WITH_RET(glsl_hdr, buf); in emit_sampler_decl()
4165 STRCAT_WITH_RET(glsl_hdr, buf); in emit_sampler_decl()
4167 STRCAT_WITH_RET(glsl_hdr, buf); in emit_sampler_decl()
4171 return glsl_hdr; in emit_sampler_decl()
4304 static void *emit_image_decl(const struct dump_ctx *ctx, char *glsl_hdr, in emit_image_decl() argument
4328 STRCAT_WITH_RET(glsl_hdr, buf); in emit_image_decl()
4331 STRCAT_WITH_RET(glsl_hdr, buf); in emit_image_decl()
4341 STRCAT_WITH_RET(glsl_hdr, buf); in emit_image_decl()
4342 return glsl_hdr; in emit_image_decl()
4345 static char *emit_ios(struct dump_ctx *ctx, char *glsl_hdr) in emit_ios() argument
4374 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4378 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4385 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4390 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4402 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4404 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4415 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4426 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4434 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4456 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4462 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4467 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4475 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4483 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4489 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4493 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4504 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4543 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4549 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4558 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4562 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4571 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4577 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4596 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4601 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4604 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4607 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4625 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4643 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4645 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4652 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4656 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4674 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4678 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4680 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4699 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4704 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4709 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4711 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4716 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4718 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4723 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4728 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4730 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4735 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4740 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4746 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4750 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4759 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4763 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4772 glsl_hdr = emit_sampler_decl(ctx, glsl_hdr, first, range, ctx->samplers + first); in emit_ios()
4773 if (!glsl_hdr) in emit_ios()
4783 glsl_hdr = emit_sampler_decl(ctx, glsl_hdr, i, 0, ctx->samplers + i); in emit_ios()
4784 if (!glsl_hdr) in emit_ios()
4793 glsl_hdr = emit_image_decl(ctx, glsl_hdr, first, range, ctx->images + first); in emit_ios()
4794 if (!glsl_hdr) in emit_ios()
4801 glsl_hdr = emit_image_decl(ctx, glsl_hdr, i, 0, ctx->images + i); in emit_ios()
4802 if (!glsl_hdr) in emit_ios()
4814 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4824 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4831 STRCAT_WITH_RET(glsl_hdr, buf); in emit_ios()
4833 return glsl_hdr; in emit_ios()
4910 char *glsl_hdr = NULL; in vrend_convert_shader() local
4970 glsl_hdr = malloc(1024); in vrend_convert_shader()
4971 if (!glsl_hdr) in vrend_convert_shader()
4973 glsl_hdr[0] = '\0'; in vrend_convert_shader()
4974 glsl_hdr = emit_header(&ctx, glsl_hdr); in vrend_convert_shader()
4975 if (!glsl_hdr) in vrend_convert_shader()
4978 glsl_hdr = emit_ios(&ctx, glsl_hdr); in vrend_convert_shader()
4979 if (!glsl_hdr) in vrend_convert_shader()
4982 glsl_final = malloc(strlen(glsl_hdr) + strlen(ctx.glsl_main) + 1); in vrend_convert_shader()
4992 strcat(glsl_final, glsl_hdr); in vrend_convert_shader()
4998 free(glsl_hdr); in vrend_convert_shader()
5045 free(glsl_hdr); in vrend_convert_shader()