Commit 2de9317d authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Ilia Mirkin

st/mesa: count shader images in MaxCombinedShaderOutputResources

Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 1edbe015
...@@ -382,6 +382,7 @@ void st_init_limits(struct pipe_screen *screen, ...@@ -382,6 +382,7 @@ void st_init_limits(struct pipe_screen *screen,
c->Program[MESA_SHADER_GEOMETRY].MaxImageUniforms + c->Program[MESA_SHADER_GEOMETRY].MaxImageUniforms +
c->Program[MESA_SHADER_FRAGMENT].MaxImageUniforms + c->Program[MESA_SHADER_FRAGMENT].MaxImageUniforms +
c->Program[MESA_SHADER_COMPUTE].MaxImageUniforms; c->Program[MESA_SHADER_COMPUTE].MaxImageUniforms;
c->MaxCombinedShaderOutputResources += c->MaxCombinedImageUniforms;
c->MaxImageUnits = MAX_IMAGE_UNITS; c->MaxImageUnits = MAX_IMAGE_UNITS;
c->MaxImageSamples = 0; /* XXX */ c->MaxImageSamples = 0; /* XXX */
if (c->MaxCombinedImageUniforms) { if (c->MaxCombinedImageUniforms) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment