clover: Fix the const variant of adaptor_range::end to deal with mismatching range...
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Nov 2013 19:14:20 +0000 (11:14 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 Nov 2013 19:52:47 +0000 (11:52 -0800)
commit99d447cc5dafa3a36b970068961989cced62e3b6
tree49f1a96a0b43ae68a7e856392d996a70f9e8aa10
parent50f19e3a668b1b589bf00613d33c7c7c4e6a4954
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>
src/gallium/state_trackers/clover/util/range.hpp