[hlsl] Enable `degree` and `radian` polyfills.

This Cl enables the `degree` and `radian` core polyfills in the HLSL IR
backend.

Bug: 42251045
Change-Id: Ia39f40171286ba5b91cb823177cc9f23568c3683
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/197481
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/hlsl/writer/raise/raise.cc b/src/tint/lang/hlsl/writer/raise/raise.cc
index 88b6a83..09a7980 100644
--- a/src/tint/lang/hlsl/writer/raise/raise.cc
+++ b/src/tint/lang/hlsl/writer/raise/raise.cc
@@ -108,6 +108,7 @@
         // and `firstbithigh`.
         core_polyfills.count_leading_zeros = true;
         core_polyfills.count_trailing_zeros = true;
+        core_polyfills.degrees = true;
         core_polyfills.extract_bits = core::ir::transform::BuiltinPolyfillLevel::kFull;
         core_polyfills.first_leading_bit = true;
         core_polyfills.first_trailing_bit = true;
@@ -120,6 +121,7 @@
         // See https://github.com/microsoft/DirectXShaderCompiler/issues/5091 for more details.
         core_polyfills.pack_4xu8_clamp = true;
         core_polyfills.pack_unpack_4x8 = options.polyfill_pack_unpack_4x8;
+        core_polyfills.radians = true;
         // core_polyfills.reflect_vec2_f32 = options.polyfill_reflect_vec2_f32;
         core_polyfills.texture_sample_base_clamp_to_edge_2d_f32 = true;
         // core_polyfills.workgroup_uniform_load = true;