clover: fix build after a3ed98f7aa85636579a5696bf036ec13e5c9104a
authorDavid Heidelberger <david.heidelberger@ixit.cz>
Wed, 23 Oct 2013 19:25:12 +0000 (21:25 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 23 Oct 2013 20:13:36 +0000 (13:13 -0700)
src/gallium/state_trackers/clover/core/kernel.cpp

index 10eb0e0b2ef5b0244054f460877b236de4a99532..3bd08f058af0a91943db64b257c41b294548fa58 100644 (file)
@@ -81,8 +81,8 @@ kernel::launch(command_queue &q,
                                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_sampler_views(q.pipe, PIPE_SHADER_COMPUTE, 0,
+                             exec.sviews.size(), exec.sviews.data());
    q.pipe->set_compute_resources(q.pipe, 0, exec.resources.size(),
                                  exec.resources.data());
    q.pipe->set_global_binding(q.pipe, 0, exec.g_buffers.size(),
@@ -96,7 +96,8 @@ kernel::launch(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->set_sampler_views(q.pipe, PIPE_SHADER_COMPUTE, 0,
+                             exec.sviews.size(), NULL);
    q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, 0,
                                exec.samplers.size(), NULL);
    exec.unbind();