Commit 57892a23 authored by Dave Airlie's avatar Dave Airlie

mesa/st: implement max combined output resources limiting.

if the driver sets the cap, then use the value it gives us.
Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <>
Signed-off-by: default avatarDave Airlie <>
parent d3fdd664
......@@ -78,6 +78,7 @@ void st_init_limits(struct pipe_screen *screen,
int supported_irs;
unsigned sh;
boolean can_ubo = TRUE;
int temp;
= _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS),
......@@ -469,6 +470,11 @@ void st_init_limits(struct pipe_screen *screen,
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;
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