mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
clover: Fix the const variant of adaptor_range::end to deal with mismatching range sizes.
Fixes infinite loop in find_grid_optimal_factor() in cases where the user specifies a grid size with less dimensions than the device supports. Reported-by: Tom Stellard <thomas.stellard@amd.com> Cc: "10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
50f19e3a66
commit
99d447cc5d
1 changed files with 2 additions and 1 deletions
|
|
@ -269,7 +269,8 @@ namespace clover {
|
|||
|
||||
typename super::const_iterator
|
||||
end() const {
|
||||
return { f, tuple::map(ends(), os) };
|
||||
return { f, tuple::map(advances_by(size()),
|
||||
tuple::map(begins(), os)) };
|
||||
}
|
||||
|
||||
typename super::size_type
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue