From 4bdf7d38422b070d7ec8fa3e15498a6bb35fe7a8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 12 Sep 2013 15:06:56 -0600 Subject: [PATCH] clover: use pipe_context::bind_sampler_states() if non-null --- src/gallium/state_trackers/clover/core/kernel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 93d54107baf..6c166fbba54 100644 --- a/src/gallium/state_trackers/clover/core/kernel.cpp +++ b/src/gallium/state_trackers/clover/core/kernel.cpp @@ -71,8 +71,13 @@ _cl_kernel::launch(clover::command_queue &q, exec.g_handles.begin(), exec.g_handles.end()); q.pipe->bind_compute_state(q.pipe, st); - q.pipe->bind_compute_sampler_states(q.pipe, 0, exec.samplers.size(), - exec.samplers.data()); + if (q.pipe->bind_sampler_states) + q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, + 0, exec.samplers.size(), + exec.samplers.data()); + else + q.pipe->bind_compute_sampler_states(q.pipe, 0, exec.samplers.size(), + exec.samplers.data()); q.pipe->set_compute_sampler_views(q.pipe, 0, exec.sviews.size(), exec.sviews.data()); q.pipe->set_compute_resources(q.pipe, 0, exec.resources.size(), -- 2.30.2