Hash :
31ccf78b
Author :
Date :
2025-01-07T15:46:15
Inline GetVertexFormatID using lookup tables Before this change the switch produced >1KB of assembly due to all the branching. This reduces the .so size by ~3KB and avoids the function call into a seemingly cold page. No obvious perf improvement in my tests from just this change. Changing underlying enum type to minimize table sizes. Bug: b/383305597 Change-Id: I724aa093ab5edf7af016b5b04764437a345517d1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6153395 Reviewed-by: Yuxin Hu <yuxinhu@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
{
"src/libANGLE/renderer/FormatID_autogen.h":
"269e897fc2970ac9d438b2583fa6c4b4",
"src/libANGLE/renderer/Format_table_autogen.cpp":
"e57370a05f8b007f7d8e905c453bf389",
"src/libANGLE/renderer/angle_format.py":
"45ffbde9a8edc7cec1c6c3afc5517b30",
"src/libANGLE/renderer/angle_format_data.json":
"6adbfb39f9462db21c9f8632035ba4f6",
"src/libANGLE/renderer/angle_format_map.json":
"135d70465df3e9b8535f15d3daee38ac",
"src/libANGLE/renderer/gen_angle_format_table.py":
"5dc62611df0c3498b12449185b7ccd6b"
}