Skip to content
Snippets Groups Projects
Commit c7b9a2e3 authored by Axel Davy's avatar Axel Davy Committed by Emil Velikov
Browse files

st/nine: Fix vertex declarations for non-standard (usage/index)


Nine code to match vertex declaration to vs inputs was limiting
the number of possible combinations.

Some sm3 games have issues with that, because arbitrary (usage/index)
can be used.

This patch does the following changes to fix the problem:
. Change the numbers given to (usage/index) combinations to uint16
. Do not put limits on the indices when it doesn't make sense
. change the conversion rule (usage/index) -> number to fit all combinations
. Instead of having a table usage_map mapping a (usage/index) number to
an input index, usage_map maps input indices to their (usage/index)

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: default avatarYaroslav Andrusyak <pontostroy@gmail.com>
Acked-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarAxel Davy <axel.davy@ens.fr>
(cherry picked from commit 712a4c54)
parent 6fcbf9ae
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment