mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
b97e10208c
commit
ac312e9548
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue