clover: remove bind_compute_sampler_states() calls
authorBrian Paul <brianp@vmware.com>
Mon, 16 Sep 2013 16:21:07 +0000 (10:21 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Oct 2013 20:05:27 +0000 (14:05 -0600)
src/gallium/state_trackers/clover/core/kernel.cpp

index 6c166fbba54cbb26b7712d35abbd45fc244044ca..53714b4283c6114cd8d8a5f1102aa5d58bdf2901 100644 (file)
@@ -71,13 +71,10 @@ _cl_kernel::launch(clover::command_queue &q,
                         exec.g_handles.begin(), exec.g_handles.end());
 
    q.pipe->bind_compute_state(q.pipe, st);
-   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->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE,
+                               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(),
@@ -94,7 +91,8 @@ _cl_kernel::launch(clover::command_queue &q,
    q.pipe->set_global_binding(q.pipe, 0, exec.g_buffers.size(), NULL, NULL);
    q.pipe->set_compute_resources(q.pipe, 0, exec.resources.size(), NULL);
    q.pipe->set_compute_sampler_views(q.pipe, 0, exec.sviews.size(), NULL);
-   q.pipe->bind_compute_sampler_states(q.pipe, 0, exec.samplers.size(), NULL);
+   q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, 0,
+                               exec.samplers.size(), NULL);
    exec.unbind();
 }