From: Tom Stellard Date: Fri, 21 Mar 2014 18:08:26 +0000 (-0700) Subject: clover: Fix typo in validate_object() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d8d0cb09eb8735a04fc36cc4d0e2dc9f9d460eb;p=mesa.git clover: Fix typo in validate_object() Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/api/transfer.cpp b/src/gallium/state_trackers/clover/api/transfer.cpp index e41b7f24f82..404ceb028b4 100644 --- a/src/gallium/state_trackers/clover/api/transfer.cpp +++ b/src/gallium/state_trackers/clover/api/transfer.cpp @@ -86,7 +86,7 @@ namespace { throw error(CL_INVALID_VALUE); // ...and within the specified object. - if (dot(pitch, origin) + size(pitch, origin) > mem.size()) + if (dot(pitch, origin) + size(pitch, region) > mem.size()) throw error(CL_INVALID_VALUE); if (any_of(is_zero(), region))