Revert "glsl: Work around MSVC arm64 optimizer bug"

This reverts commit 86b5c9278c.

As bug https://developercommunity.visualstudio.com/t/Incorrect-ARM64-codegen-with-optimizatio/10564605

is fixed in VS 17.8.6

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36767>
This commit is contained in:
Yonggang Luo
2025-08-13 02:27:16 +08:00
committed by Marge Bot
parent 1c0c3a2375
commit 85310e912c
-7
View File
@@ -285,10 +285,6 @@ link_util_check_subroutine_resources(struct gl_shader_program *prog)
}
}
#if defined(_MSC_VER) && DETECT_ARCH_AARCH64
// Work around https://developercommunity.visualstudio.com/t/Incorrect-ARM64-codegen-with-optimizatio/10564605
#pragma optimize("", off)
#endif
/**
* Validate uniform resources used by a program versus the implementation limits
*/
@@ -368,9 +364,6 @@ link_util_check_uniform_resources(const struct gl_constants *consts,
}
}
}
#if defined(_MSC_VER) && DETECT_ARCH_AARCH64
#pragma optimize("", on)
#endif
void
link_util_calculate_subroutine_compat(struct gl_shader_program *prog)