[PATCH weston] compositor-drm: select the highest possible mode frequency

Kristian Høgsberg hoegsberg at gmail.com
Thu Jun 20 12:18:41 PDT 2013


On Wed, Jun 19, 2013 at 03:19:19PM +0200, Giulio Camuffo wrote:
> the mode list is ordered so that the lower frequencies come
> before the higher ones, so traverse the list from the end
> to the beginning

That seems like a better heuristic indeed, thanks.

Kristian

> ---
>  src/compositor-drm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index 8787723..c4f9cf6 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -1836,7 +1836,7 @@ create_output_for_connector(struct drm_compositor *ec,
>  	current = NULL;
>  	configured = NULL;
>  
> -	wl_list_for_each(drm_mode, &output->base.mode_list, base.link) {
> +	wl_list_for_each_reverse(drm_mode, &output->base.mode_list, base.link) {
>  		if (config == OUTPUT_CONFIG_MODE &&
>  		    width == drm_mode->base.width &&
>  		    height == drm_mode->base.height)
> -- 
> 1.8.3.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list