glsl: store has implicit conversions bools in gl_shader

We want to be able to use these at link time also.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30752>
This commit is contained in:
Timothy Arceri
2024-08-16 11:11:51 +10:00
parent ac312e9548
commit 018ebeca72
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -2400,6 +2400,9 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader,
shader->InfoLog = state->info_log;
shader->Version = state->language_version;
shader->IsES = state->es_shader;
shader->has_implicit_conversions = state->has_implicit_conversions();
shader->has_implicit_int_to_uint_conversion =
state->has_implicit_int_to_uint_conversion();
struct gl_shader_compiler_options *options =
&ctx->Const.ShaderCompilerOptions[shader->Stage];
+2
View File
@@ -152,6 +152,8 @@ struct gl_shader
GLchar *Label; /**< GL_KHR_debug */
GLboolean DeletePending;
bool IsES; /**< True if this shader uses GLSL ES */
bool has_implicit_conversions;
bool has_implicit_int_to_uint_conversion;
enum gl_compile_status CompileStatus;