[Mesa-dev] [PATCH 7/8] clover: Make resource::bind_surface() const

Tom Stellard thomas.stellard at amd.com
Thu Feb 20 10:21:46 PST 2014


---
 src/gallium/state_trackers/clover/core/resource.cpp | 2 +-
 src/gallium/state_trackers/clover/core/resource.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/clover/core/resource.cpp b/src/gallium/state_trackers/clover/core/resource.cpp
index 7e6b51f..f38573d 100644
--- a/src/gallium/state_trackers/clover/core/resource.cpp
+++ b/src/gallium/state_trackers/clover/core/resource.cpp
@@ -96,7 +96,7 @@ resource::unbind_sampler_view(command_queue &q,
 }
 
 pipe_surface *
-resource::bind_surface(command_queue &q, bool rw) {
+resource::bind_surface(command_queue &q, bool rw) const {
    pipe_surface info {};
 
    info.format = pipe->format;
diff --git a/src/gallium/state_trackers/clover/core/resource.hpp b/src/gallium/state_trackers/clover/core/resource.hpp
index 7a6a3f1..b36fe36 100644
--- a/src/gallium/state_trackers/clover/core/resource.hpp
+++ b/src/gallium/state_trackers/clover/core/resource.hpp
@@ -68,7 +68,7 @@ namespace clover {
       void unbind_sampler_view(command_queue &q,
                                pipe_sampler_view *st);
 
-      pipe_surface *bind_surface(command_queue &q, bool rw);
+      pipe_surface *bind_surface(command_queue &q, bool rw) const;
       void unbind_surface(command_queue &q, pipe_surface *st);
 
       pipe_resource *pipe;
-- 
1.8.1.4




More information about the mesa-dev mailing list