gallium: add new limits for shader buffers and images
authorMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jul 2015 12:34:13 +0000 (14:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 16 Jul 2015 14:52:17 +0000 (16:52 +0200)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/ilo/ilo_state.h
src/gallium/include/pipe/p_state.h
src/gallium/state_trackers/clover/core/device.cpp

index 3e6fd8a2554408859eb5301463c36199cc55e38a..66c93007eb11935cf4e19349c7d32beac4f8bf31 100644 (file)
@@ -202,7 +202,7 @@ struct ilo_cbuf_state {
 };
 
 struct ilo_resource_state {
-   struct pipe_surface *states[PIPE_MAX_SHADER_RESOURCES];
+   struct pipe_surface *states[PIPE_MAX_SHADER_IMAGES];
    unsigned count;
 };
 
index a18f12e8a87904d8cb242f6a19af5f6e8bfa2346..1c529f7d0783393127fd4980aa303f9a5870b14a 100644 (file)
@@ -61,7 +61,8 @@ extern "C" {
 #define PIPE_MAX_SHADER_INPUTS    80 /* 32 GENERIC + 32 PATCH + 16 others */
 #define PIPE_MAX_SHADER_OUTPUTS   80 /* 32 GENERIC + 32 PATCH + 16 others */
 #define PIPE_MAX_SHADER_SAMPLER_VIEWS 32
-#define PIPE_MAX_SHADER_RESOURCES 32
+#define PIPE_MAX_SHADER_BUFFERS   32
+#define PIPE_MAX_SHADER_IMAGES    32
 #define PIPE_MAX_TEXTURE_LEVELS   16
 #define PIPE_MAX_SO_BUFFERS        4
 #define PIPE_MAX_SO_OUTPUTS       64
index c42d1d260042e774c69076d034c0c00e4aa6f370..6efff79c7f40e00c3209731d896b9d7ff68c29d5 100644 (file)
@@ -89,12 +89,12 @@ device::vendor_id() const {
 
 size_t
 device::max_images_read() const {
-   return PIPE_MAX_SHADER_RESOURCES;
+   return PIPE_MAX_SHADER_IMAGES;
 }
 
 size_t
 device::max_images_write() const {
-   return PIPE_MAX_SHADER_RESOURCES;
+   return PIPE_MAX_SHADER_IMAGES;
 }
 
 cl_uint