Skip to content

turnip: fix tess param bo size calculation

Jonathan Marek requested to merge flto/mesa:tess2 into master

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.

This fixes iommu faults in the tessellation vulkan demo.

/cc @krh /cc @brkho

Merge request reports