diff options
author | Roland Scheidegger <[email protected]> | 2017-07-08 00:14:35 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2017-07-08 06:02:18 +0200 |
commit | 4db72852a16fc4a2a559255f9965e1d02e4f2b9c (patch) | |
tree | c1870ee4f833acadd2288f2befe9f641e2ea87e9 /src/compiler/Makefile.nir.am | |
parent | f728435e1f872af3efcd6b9215e8d722d35090cc (diff) |
draw: handle more TGSI_SEMANTIC_COLOR indices
It could only handle indices 0/1, otherwise what happened was bad (accessing
array out of bounds, no crash but kind of random). This is enough for the gl
state tracker (primary/secondary color) but not enough for some other state
trackers (d3d9 has no limits on the number of color interpolants).
The complexity with color semantics are all due to the front/back mapping (2
outputs in the vs map to one input in the fs) so this isn't extended to
indices > 1 - d3d9 has no use for back colors, therefore this isn't needed and
still only 2 back colors can be handled correctly.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/compiler/Makefile.nir.am')
0 files changed, 0 insertions, 0 deletions