[Mesa-dev] clover: fix build after a3ed98f7aa85636579a5696bf036ec13e5c9104a
Brian Paul
brianp at vmware.com
Thu Oct 24 17:14:49 CEST 2013
On 10/23/2013 01:33 PM, David Heidelberger wrote:
> link to similiar bug: https://bugs.freedesktop.org/show_bug.cgi?id=70804
>
> ---
> src/gallium/state_trackers/clover/core/kernel.cpp | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp
> b/src/gallium/state_trackers/clover/core/kernel.cpp
> index 10eb0e0..3bd08f0 100644
> --- a/src/gallium/state_trackers/clover/core/kernel.cpp
> +++ b/src/gallium/state_trackers/clover/core/kernel.cpp
> @@ -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();
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list