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:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user