v3dv: split out broadcom_shader_stage_to_gl() calls to improve readability
authorEric Engestrom <eric@igalia.com>
Fri, 10 Mar 2023 10:33:05 +0000 (10:33 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 10 Mar 2023 10:38:43 +0000 (10:38 +0000)
commite29772f1345edecae5679d259ae2c04786b973b2
tree714276c66ce2ff569cf9b96937a0212a46d3db31
parentf5d3d1e7edb933efbf5c98b6b8716920c5877e08
v3dv: split out broadcom_shader_stage_to_gl() calls to improve readability

This is an inline function with a compile-constant switch, so I expect
the compiler wouldn't produce any better code like this, but for humans
it's easier to read when function calls are not embedded into other
function calls.

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21835>
src/broadcom/vulkan/v3dv_pipeline.c