if the driver sets the cap, then use the value it gives us.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
int supported_irs;
unsigned sh;
boolean can_ubo = TRUE;
+ int temp;
c->MaxTextureLevels
= _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS),
c->UseSTD430AsDefaultPacking =
screen->get_param(screen, PIPE_CAP_LOAD_CONSTBUF);
+
+ /* limit the max combined shader output resources to a driver limit */
+ temp = screen->get_param(screen, PIPE_CAP_MAX_COMBINED_SHADER_OUTPUT_RESOURCES);
+ if (temp > 0 && c->MaxCombinedShaderOutputResources > temp)
+ c->MaxCombinedShaderOutputResources = temp;
}