gallium: add new limits for shader buffers and images

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Marek Olšák 2015-07-05 14:34:13 +02:00
parent f9f79d29ce
commit b73bec0ecd
3 changed files with 5 additions and 4 deletions

View 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;
};

View 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

View 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