summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-09-07 21:24:08 +0200
committerMarek Olšák <[email protected]>2016-09-08 22:51:33 +0200
commit5981ab544562c667c882526c31a6f8c2ce6eba12 (patch)
treec2d7c4a1c60ee533ee5cde6aa41aab080ad939e4 /src/gallium/state_trackers/clover
parent0fbaf749779b5ac6d242c2b6745c20be98567499 (diff)
gallium: remove PIPE_BIND_TRANSFER_READ/WRITE
not used in any useful way Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/format.cpp4
-rw-r--r--src/gallium/state_trackers/clover/core/resource.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/clover/core/format.cpp b/src/gallium/state_trackers/clover/core/format.cpp
index aee1cc9c79d..57012924098 100644
--- a/src/gallium/state_trackers/clover/core/format.cpp
+++ b/src/gallium/state_trackers/clover/core/format.cpp
@@ -147,9 +147,7 @@ namespace clover {
std::set<cl_image_format> s;
pipe_texture_target target = translate_target(type);
unsigned bindings = (PIPE_BIND_SAMPLER_VIEW |
- PIPE_BIND_COMPUTE_RESOURCE |
- PIPE_BIND_TRANSFER_READ |
- PIPE_BIND_TRANSFER_WRITE);
+ PIPE_BIND_COMPUTE_RESOURCE);
for (auto f : formats) {
if (all_of([=](const device &dev) {
diff --git a/src/gallium/state_trackers/clover/core/resource.cpp b/src/gallium/state_trackers/clover/core/resource.cpp
index 83781d39c01..06fd3f608fa 100644
--- a/src/gallium/state_trackers/clover/core/resource.cpp
+++ b/src/gallium/state_trackers/clover/core/resource.cpp
@@ -136,9 +136,7 @@ root_resource::root_resource(clover::device &dev, memory_obj &obj,
info.target = translate_target(obj.type());
info.bind = (PIPE_BIND_SAMPLER_VIEW |
PIPE_BIND_COMPUTE_RESOURCE |
- PIPE_BIND_GLOBAL |
- PIPE_BIND_TRANSFER_READ |
- PIPE_BIND_TRANSFER_WRITE);
+ PIPE_BIND_GLOBAL);
if (obj.flags() & CL_MEM_USE_HOST_PTR && user_ptr_support) {
// Page alignment is normally required for this, just try, hope for the