st/mesa: count shader images in MaxCombinedShaderOutputResources
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 16 Feb 2016 03:00:04 +0000 (22:00 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 16 Feb 2016 03:22:34 +0000 (22:22 -0500)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_extensions.c

index 57eeed66639a938384c51b9edbd1b2d776c557f6..9077added7c1e4556182fad99185f683e1d140f1 100644 (file)
@@ -382,6 +382,7 @@ void st_init_limits(struct pipe_screen *screen,
          c->Program[MESA_SHADER_GEOMETRY].MaxImageUniforms +
          c->Program[MESA_SHADER_FRAGMENT].MaxImageUniforms +
          c->Program[MESA_SHADER_COMPUTE].MaxImageUniforms;
+   c->MaxCombinedShaderOutputResources += c->MaxCombinedImageUniforms;
    c->MaxImageUnits = MAX_IMAGE_UNITS;
    c->MaxImageSamples = 0; /* XXX */
    if (c->MaxCombinedImageUniforms) {