Skip to content

panvk: fix gl_VertexIndex

Chia-I Wu requested to merge olv/mesa:panvk-vertex-id into main

What does this MR do and why?

panvk: fix gl_VertexIndex

According to pandecode, r32 is global attribute offset and r36 is vertex
offset.  Follow panfrost to use r36 instead of r32 for both non-indexed
firstVertex and indexed vertexOffset.

With this, gl_VertexIndex stops being zero-based which is incorrect.

This fixes dEQP-VK.draw.renderpass.simple_draw.*.

Merge request reports

Loading