mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
708d8f4d0a
commit
9add63a3a5
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue