panvk: Fix has_non_vs_attribute() test in panvk_draw_prepare_vs_attribs()

attrib_count should be checked against pipeline->attribs.attrib_count
not pipeline->attribs.buf_count.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28417>
This commit is contained in:
Boris Brezillon
2024-04-02 17:42:59 +02:00
committed by Marge Bot
parent 58a5ae3f72
commit b9fe15e47f
+1 -1
View File
@@ -937,7 +937,7 @@ panvk_draw_prepare_vs_attribs(struct panvk_cmd_buffer *cmdbuf,
&cmdbuf->state.vb.bufs[buf_idx], &attrib_descs[i]);
}
if (attrib_count > pipeline->attribs.buf_count) {
if (attrib_count > pipeline->attribs.attrib_count) {
unsigned bufs_offset =
pipeline->attribs.buf_count * pan_size(ATTRIBUTE_BUFFER) * 2;
unsigned attribs_offset =