Files
angle/scripts/code_generation_hashes/Metal_format_table.json
T
Kenneth Russell 660e4a7c0d Don't override D16_UNORM to D32_FLOAT on Apple GPUs.
Local testing of:
dEQP-GLES3.functional.polygon_offset.fixed16_render_with_units

on M1 indicates that depth bias works correctly with
MTLPixelFormatDepth16Unorm on this GPU type, indicating that previous
workarounds only need to be applied to non-Apple GPUs.

Reimplement d24s8_fallbacks_mac as depth_fallbacks_mac, add this
workaround there, and move the conditions to the JSON file per review
feedback from Alexey Knyazev. Avoid emitting duplicate depth formats
in gen_mtl_format_table.py.

Leave the iOS Simulator alone - the workaround is likely still needed
there, and difficult to test.

Tested via:
./out/Release/angle_deqp_gles3_tests \
--gtest_filter=\
dEQP-GLES3.functional.polygon_offset.fixed16_render_with_units \
--use-angle=metal

Bug: angleproject:6597
Change-Id: I52a99b3f710bb88e1f43ed17862f6e6f2e6471ac
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4184943
Auto-Submit: Kenneth Russell <[email protected]>
Reviewed-by: Kyle Piddington <[email protected]>
Reviewed-by: Quyen Le <[email protected]>
Reviewed-by: Gregg Tavares <[email protected]>
Commit-Queue: Kenneth Russell <[email protected]>
2023-01-25 02:45:08 +00:00

12 lines
465 B
JSON

{
"src/libANGLE/renderer/angle_format.py":
"2f8fa768088e22b0963bbdf842d3e725",
"src/libANGLE/renderer/angle_format_map.json":
"4c09d19204afa53cd9d137bb4edbabb1",
"src/libANGLE/renderer/metal/gen_mtl_format_table.py":
"28f3065f5d1bc65803b1218b706430ae",
"src/libANGLE/renderer/metal/mtl_format_map.json":
"635fa5d81e340bf0d6c7cbbdd804b110",
"src/libANGLE/renderer/metal/mtl_format_table_autogen.mm":
"c1dc9a979d33e5d55285504a7cef5e7f"
}