diff options
author | Axel Davy <[email protected]> | 2014-11-26 22:32:57 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-12-03 23:20:56 +0000 |
commit | c7b9a2e38a3e471562b50dab8be65db8ac6819f8 (patch) | |
tree | 3e7fb139f239690c39260267b68738bb3aac7420 /progs/demos | |
parent | 6fcbf9aee3332243642008035e08b8f1f499ae3f (diff) |
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" <[email protected]>
Tested-by: Yaroslav Andrusyak <[email protected]>
Acked-by: Ilia Mirkin <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
(cherry picked from commit 712a4c5438d0ce257344b5196c20ad7929b54a0e)
Diffstat (limited to 'progs/demos')
0 files changed, 0 insertions, 0 deletions