diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-07-30 15:43:19 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-12-17 20:09:38 +0000 |
commit | 9add63a3a5600d96d96640320706dd2491b9bd64 (patch) | |
tree | d398c7096edf8af562e19af887a49294dfe9e263 /src/amd | |
parent | 708d8f4d0a557f509435e05696a4096a2900d748 (diff) |
radv: Remove redundant format check.
The switch directly after the check has a default case that returns
NULL too, so the effective return value is not changed. Also this
check is wrong once we start dealing with formats introduced by an
extension (e.g. YUV formats).
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/vk_format_table.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/amd/vulkan/vk_format_table.py b/src/amd/vulkan/vk_format_table.py index 604aac8fa75..44c3439e9fc 100644 --- a/src/amd/vulkan/vk_format_table.py +++ b/src/amd/vulkan/vk_format_table.py @@ -146,10 +146,6 @@ def write_format_table(formats): print("const struct vk_format_description *") print("vk_format_description(VkFormat format)") print("{") - print(" if (format > VK_FORMAT_END_RANGE) {") - print(" return NULL;") - print(" }") - print() print(" switch (format) {") for format in formats: print(" case %s:" % format.name) |