radv: directly use vk_format_map for vertex input

this is much faster than calling a non-inline function with
conditionals to index the same array

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23599>
This commit is contained in:
Mike Blumenkrantz
2023-06-08 10:17:26 -04:00
committed by Marge Bot
parent 6650d89d4c
commit 68ded42a38
+1 -1
View File
@@ -7339,7 +7339,7 @@ radv_CmdSetVertexInputEXT(VkCommandBuffer commandBuffer, uint32_t vertexBindingD
cmd_buffer->vertex_bindings[attrib->binding].stride = binding->stride;
vs_state->offsets[loc] = attrib->offset;
enum pipe_format format = vk_format_to_pipe_format(attrib->format);
enum pipe_format format = vk_format_map[attrib->format];
const struct ac_vtx_format_info *vtx_info = &vtx_info_table[format];
vs_state->formats[loc] = format;