lima: fix indexed draw with glDrawElements
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