mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01: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>
(cherry picked from commit 99d447cc5d)
This commit is contained in:
parent
c4cc166abc
commit
c702f5eead
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