Module: Mesa
Branch: master
Commit: f6c46e8408ba0d3a14da113b8db679616f22b04b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6c46e8408ba0d3a14da113b8db679616f22b04b

Author: Karol Herbst <[email protected]>
Date:   Thu Oct 15 16:31:10 2020 +0200

clover/device: use PIPE_MAX_SHADER_SAMPLER_VIEWS for max_images_read

Read images are really just normal textures and OpenCL requires 128 anyway.

Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7069>

---

 src/gallium/frontends/clover/core/device.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/clover/core/device.cpp 
b/src/gallium/frontends/clover/core/device.cpp
index 7d3b0d61a2a..6f46222dbdc 100644
--- a/src/gallium/frontends/clover/core/device.cpp
+++ b/src/gallium/frontends/clover/core/device.cpp
@@ -109,7 +109,7 @@ device::vendor_id() const {
 
 size_t
 device::max_images_read() const {
-   return PIPE_MAX_SHADER_IMAGES;
+   return PIPE_MAX_SHADER_SAMPLER_VIEWS;
 }
 
 size_t

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to