|
|
@@ -405,7 +405,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) |
|
|
|
return 1; |
|
|
|
|
|
|
|
case PIPE_CAP_GLSL_FEATURE_LEVEL: |
|
|
|
return debug_get_bool_option("R600_GLSL130", FALSE) ? 130 : 120; |
|
|
|
return rscreen->glsl_feature_level; |
|
|
|
|
|
|
|
/* Supported except the original R600. */ |
|
|
|
case PIPE_CAP_INDEP_BLEND_ENABLE: |
|
|
@@ -875,6 +875,7 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws) |
|
|
|
pipe_mutex_init(rscreen->fences.mutex); |
|
|
|
|
|
|
|
rscreen->use_surface_alloc = debug_get_bool_option("R600_SURF", TRUE); |
|
|
|
rscreen->glsl_feature_level = debug_get_bool_option("R600_GLSL130", FALSE) ? 130 : 120; |
|
|
|
|
|
|
|
return &rscreen->screen; |
|
|
|
} |