diff options
author | Patrick Rudolph <[email protected]> | 2015-12-10 19:50:38 +0100 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-12-10 13:55:53 -0500 |
commit | 79bff488bc23b8615cc37069b6c5914c56be835f (patch) | |
tree | d51927f976c526267c76d49b30511084379fe8ef /src/gallium/auxiliary/draw/draw_pt.h | |
parent | ba67739b662eaf68f7a1117005e20079b2653044 (diff) |
gallium/util: return correct number of bound vertex buffers
In case a state tracker unbinds every slot by a seperate
pipe->set_vertex_buffers() call, starting from slot zero, the number
of bound buffers would not reach zero at all.
The current algorithm does not account for pre-existing holes in the
buffer list.
Unbinding all buffers at once or starting at the top-most slot results
in correct behaviour.
Calculating the correct number of bound buffers fixes a NULL pointer
dereference in nvc0_validate_vertex_buffers_shared().
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93004
Signed-off-by: Patrick Rudolph <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Cc: "11.0 11.1" <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.h')
0 files changed, 0 insertions, 0 deletions