summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/hud
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2016-10-14 03:08:00 +0200
committerRoland Scheidegger <[email protected]>2016-10-19 01:44:59 +0200
commit0942fe548e935ccc849f44bd920649ef2b93a6a5 (patch)
treed4324f0952f656558d6415c90fa8185c264c100e /src/gallium/auxiliary/hud
parentd1b4a3451e03e09966fa9700584e38baece8d3cd (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/gallium/auxiliary/hud')
0 files changed, 0 insertions, 0 deletions