v3d,v3dv: add a common v3d_hw_prim_type helper
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 18 Jul 2022 08:21:46 +0000 (10:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Jul 2022 00:00:54 +0000 (00:00 +0000)
commit2ca4a51679b649cd4ee1df3f84d2379d2b0dca68
treea7d1c3ddd146b466c8095b17283e9c26a6742e87
parente812cbe84738e64838e70f337b6b8e69178c0959
v3d,v3dv: add a common v3d_hw_prim_type helper

We had this replicated in both drivers.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17594>
src/broadcom/common/v3d_util.c
src/broadcom/common/v3d_util.h
src/broadcom/vulkan/v3dvx_cmd_buffer.c
src/gallium/drivers/v3d/v3dx_draw.c