diff options
author | Tom Stellard <[email protected]> | 2014-03-21 11:08:26 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-03-21 19:12:12 +0100 |
commit | 8d8d0cb09eb8735a04fc36cc4d0e2dc9f9d460eb (patch) | |
tree | bfde1e95413d6db38c3f8fbb858c6538a323c762 /src/gallium/state_trackers | |
parent | 9477d8c862b206c35de0bc957a08524188abc898 (diff) |
clover: Fix typo in validate_object()
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/clover/api/transfer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |