turnip: fix tess param bo size calculation
authorJonathan Marek <jonathan@marek.ca>
Thu, 2 Jul 2020 15:53:33 +0000 (11:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 4 Jul 2020 03:33:43 +0000 (03:33 +0000)
commit19f3c79c7ed4e68d37771489f52bd94a2d032fa6
tree6beb7e002c5429b698c7e9e9cc6ec78728f6533c
parent395511d16915297b39d11f6d7ede0e0274d390c9
turnip: fix tess param bo size calculation

ir3 already calculates the stride in the tess param bo, so use that instead
of a incorrect calculation. The calculation of per_vertex_output_size /
per_patch_output_size is wrong because it counts dwords instead of bytes,
and what it counts for per_vertex_output_size is a per-patch size because
the glsl type is already an array of # vertex/patch elements.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5743>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h