v3d,v3dv: move TFU register definition to a common header
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 17 Nov 2021 09:44:49 +0000 (10:44 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 17 Nov 2021 10:04:31 +0000 (11:04 +0100)
commitcbf0d83eace937c1a5cf7e12759985e32740b520
tree21cc23ea5d060ca81467bd7a7cb5372272432800
parentffbad81305bfbafb23c07a20bab8a138bbafa6a5
v3d,v3dv: move TFU register definition to a common header

We are using the same definitions for both OpenGL and Vulkan, so let's
move it to common.

As we are here we are also adding versioning on the TFU register
definition. Those are basically register bit places, so really likely
to change between versions.

Adding 33 as it is the first version they got defined.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13832>
src/broadcom/common/v3d_tfu.h [new file with mode: 0644]
src/broadcom/vulkan/v3dv_meta_common.h
src/broadcom/vulkan/v3dvx_meta_common.c
src/gallium/drivers/v3d/v3d_blit.c