glsl: drop double support checks in helper

If doubles are not supported by the shader the compiler will throw
an error if it sees one, there is no need to check if they are
supported in this helper for implicit conversions.

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 10:04:14 +10:00
parent b97e10208c
commit ac312e9548

View file

@ -996,11 +996,11 @@ _mesa_glsl_can_implicitly_convert(const glsl_type *from, const glsl_type *desire
return true;
/* No implicit conversions from double. */
if ((!state || state->has_double()) && glsl_type_is_double(from))
if (glsl_type_is_double(from))
return false;
/* Conversions from different types to double. */
if ((!state || state->has_double()) && glsl_type_is_double(desired)) {
if (glsl_type_is_double(desired)) {
if (glsl_type_is_float_16_32(from))
return true;
if (glsl_type_is_integer_32(from))