[PATCH 2/3] xf86Crtc: setup tiled monitors correctly in right of

Keith Packard keithp at keithp.com
Mon Apr 13 07:35:11 PDT 2015


Dave Airlie <airlied at gmail.com> writes:

> @@ -2121,6 +2121,7 @@ numEnabledOutputs(xf86CrtcConfigPtr config, Bool *enabled)
>      return i;
>  }
>  
> +
>  static Bool
>  xf86TargetRightOf(ScrnInfoPtr scrn, xf86CrtcConfigPtr config,
>                    DisplayModePtr *modes, Bool *enabled,

Extra blank line

> +                        config->output[ot]->initial_x = cur_x;
> +                        config->output[ot]->initial_y = cur_y;

Seems like this could just be:

                           config->output[ot]->initial_x = ht * tile_info->tile_h_size;
                           config->output[ot]->initial_y = vt * tile_info->tile_v_size;

If so, this would eliminate a bit of frobbing around computing cur_x/cur_y values.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150413/b7e46d47/attachment.sig>


More information about the xorg-devel mailing list