diff options
author | Roland Scheidegger <[email protected]> | 2016-10-14 03:08:00 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-10-19 01:44:59 +0200 |
commit | 0942fe548e935ccc849f44bd920649ef2b93a6a5 (patch) | |
tree | d4324f0952f656558d6415c90fa8185c264c100e /src/amd | |
parent | d1b4a3451e03e09966fa9700584e38baece8d3cd (diff) |
draw: improved handling of undefined inputs
Previous attempts to zero initialize all inputs were not really optimal
(though no performance impact was measurable). In fact this is not really
necessary, since we know the max number of inputs used.
Instead, just generate fetch for up to max inputs used by the shader,
directly replacing inputs for which there was no vertex element by zero.
This also cleans up key generation, which previously would have stored
some garbage for these elements.
And also drop the assertion which indicates such bogus usage by a
debug_printf (the whole point of initializing the undefined inputs was to
make this case safe to handle).
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/amd')
0 files changed, 0 insertions, 0 deletions