diff options
author | Brian Paul <[email protected]> | 2013-09-12 15:06:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-03 14:05:26 -0600 |
commit | 4bdf7d38422b070d7ec8fa3e15498a6bb35fe7a8 (patch) | |
tree | a20c22809fe964c59c4c2dfc7316edcbc35af2c7 /src/gallium/state_trackers/clover | |
parent | 96b9c094952868513961cf4f8612949f3e624ab9 (diff) |
clover: use pipe_context::bind_sampler_states() if non-null
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r-- | src/gallium/state_trackers/clover/core/kernel.cpp | 9 |
1 files 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(), |