From 67a303744434c9129931e9627d97e34af6bef8f3 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 4 Nov 2013 11:24:10 -0800 Subject: [PATCH] clover: Constify some command_queue arguments. --- src/gallium/state_trackers/clover/api/kernel.cpp | 8 ++++---- 1 file 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 &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 + 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()) -- 2.30.2