@ -3995,6 +3995,13 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr)
STRCAT_WITH_RET ( glsl_hdr , " #extension GL_OES_texture_storage_multisample_2d_array : require \n " ) ;
STRCAT_WITH_RET ( glsl_hdr , " #extension GL_OES_texture_storage_multisample_2d_array : require \n " ) ;
if ( ctx - > prog_type = = TGSI_PROCESSOR_GEOMETRY )
if ( ctx - > prog_type = = TGSI_PROCESSOR_GEOMETRY )
STRCAT_WITH_RET ( glsl_hdr , " #extension GL_EXT_geometry_shader : require \n " ) ;
STRCAT_WITH_RET ( glsl_hdr , " #extension GL_EXT_geometry_shader : require \n " ) ;
if ( ( ctx - > prog_type = = TGSI_PROCESSOR_TESS_CTRL | |
ctx - > prog_type = = TGSI_PROCESSOR_TESS_EVAL ) ) {
if ( ctx - > cfg - > glsl_version < 320 )
STRCAT_WITH_RET ( glsl_hdr , " #extension GL_OES_tessellation_shader : require \n " ) ;
}
PAD_GPU_SHADER5 ( glsl_hdr ) ;
PAD_GPU_SHADER5 ( glsl_hdr ) ;
STRCAT_WITH_RET ( glsl_hdr , " precision highp float; \n " ) ;
STRCAT_WITH_RET ( glsl_hdr , " precision highp float; \n " ) ;
STRCAT_WITH_RET ( glsl_hdr , " precision highp int; \n " ) ;
STRCAT_WITH_RET ( glsl_hdr , " precision highp int; \n " ) ;