v3dv/uniforms: update VIEWPORT_X/Y_SCALE uniforms for v71
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 14 Sep 2021 08:08:19 +0000 (10:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:42 +0000 (22:37 +0000)
commit1a822ba3e64003f7c5e095fafc54f6692ad261fd
tree0c1dbe21e897d473e26464042fddabf91a74f804
parent0fdd9ea9bcbca30bccce492d2765bc5ef09d469b
v3dv/uniforms: update VIEWPORT_X/Y_SCALE uniforms for v71

As the packet CLIPPER_XY scaling, this needs to be computed on 1/64ths
of pixel, instead of 1/256ths of pixels.

As this is the usual values that we get from macros, we add manually a
v42 and v71 macro, and define a new helper (V3DV_X) to get the value
for the current hw version.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/vulkan/v3dv_private.h
src/broadcom/vulkan/v3dv_uniforms.c
src/broadcom/vulkan/v3dvx_private.h