This change switches the internal enums we pass around from VkFormat to FormatID. The end goal of the refactor is to allow the Vulkan back-end to store packed tables indexed by FormatID. Because VkFormat has large gaps in its enum space we'd otherwise need to use unordered data structures like unordered_map. The change removes the redundant VkFormat storage from vk::Format and uses a new table query to return the VkFormat that 1:1 matches an angle::FormatID. We also include a reverse mapping for use with native Vulkan get functions for Android. Also moves sRGB conversion functions into renderer_utils. A couple sRGB formats that don't exist in GL are no longer handled by the sRGB conversion functions. These formats should be extremely rare. Bug: angleproject:5438 Change-Id: Id8b49773ca0c556f9f5a6a10fcf0d9762b93bbea Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2618204 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by:Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by:
Ian Elliott <ianelliott@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| code_generation_hashes | Loading commit data... | |
| angle_presubmit_utils.py | Loading commit data... | |
| angle_presubmit_utils_unittest.py | Loading commit data... | |
| apply_clang_format_on_all_sources.py | Loading commit data... | |
| bmp_to_nv12.py | Loading commit data... | |
| bootstrap.py | Loading commit data... | |
| egl.xml | Loading commit data... | |
| egl_angle_ext.xml | Loading commit data... | |
| entry_point_packed_egl_enums.json | Loading commit data... | |
| entry_point_packed_gl_enums.json | Loading commit data... | |
| export_targets.py | Loading commit data... | |
| file_exists.py | Loading commit data... | |
| gen_angle_gn_info_json.py | Loading commit data... | |
| gen_gl_enum_utils.py | Loading commit data... | |
| gen_proc_table.py | Loading commit data... | |
| gen_vk_gl_cts_build.py | Loading commit data... | |
| generate_android_bp.py | Loading commit data... | |
| generate_entry_points.py | Loading commit data... | |
| generate_loader.py | Loading commit data... | |
| generate_new_renderer.py | Loading commit data... | |
| generate_stats.py | Loading commit data... | |
| gl.xml | Loading commit data... | |
| gl_angle_ext.xml | Loading commit data... | |
| msvs_projects.py | Loading commit data... | |
| perf_test_runner.py | Loading commit data... | |
| registry_xml.py | Loading commit data... | |
| remove_files.py | Loading commit data... | |
| roll_aosp.sh | Loading commit data... | |
| roll_chromium_deps.py | Loading commit data... | |
| run_code_generation.py | Loading commit data... | |
| run_gtest_angle_test.py | Loading commit data... | |
| trigger.bat | Loading commit data... | |
| trigger.py | Loading commit data... | |
| update_canary_angle.py | Loading commit data... | |
| vk_mandatory_format_support_capture_to_json.js | Loading commit data... | |
| wgl.xml | Loading commit data... |