Skip to content

lima: fix indexed draw with glDrawElements

Qiang Yu requested to merge enunes:lima-17.3-gldrawelements into lima-17.3

Created by: enunes

This implements the indexed draw handling in lima_pack_plbu_cmd() during the vbo draw. Without this patch, lima attempts to use info->index.resource even when info->has_user_indices is set, which causes a segfault in mesa. Instead, the driver needs to first upload the raw indices buffer contained in info->index.user_buffer before attempting to access info->index.resource.

Signed-off-by: Erico Nunes nunes.erico@gmail.com

Merge request reports

Loading