diff options
author | Francisco Jerez <[email protected]> | 2013-11-04 11:24:10 -0800 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2013-11-04 12:12:37 -0800 |
commit | 67a303744434c9129931e9627d97e34af6bef8f3 (patch) | |
tree | 8db1e3971c1f3970cd6892f447fd55d085d9fed0 /src/gallium/state_trackers | |
parent | 6e9206bdccda628682204fa0b35b2bf698d64295 (diff) |
clover: Constify some command_queue arguments.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/clover/api/kernel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/clover/api/kernel.cpp b/src/gallium/state_trackers/clover/api/kernel.cpp index 7fd23d2d8f4..f2f19690de7 100644 --- a/src/gallium/state_trackers/clover/api/kernel.cpp +++ b/src/gallium/state_trackers/clover/api/kernel.cpp @@ -192,7 +192,7 @@ namespace { /// Common argument checking shared by kernel invocation commands. /// void - validate_common(command_queue &q, kernel &kern, + validate_common(const command_queue &q, kernel &kern, const ref_vector<event> &deps) { if (kern.prog.ctx != q.ctx || any_of([&](const event &ev) { @@ -209,9 +209,9 @@ namespace { throw error(CL_INVALID_PROGRAM_EXECUTABLE); } - void - validate_grid(command_queue &q, cl_uint dims, - const size_t *d_grid_size, const size_t *d_block_size) { + std::vector<size_t> + validate_grid_size(const command_queue &q, cl_uint dims, + const size_t *d_grid_size) { auto grid_size = range(d_grid_size, dims); if (dims < 1 || dims > q.dev.max_block_size().size()) |