Skip to content

Commit 6bc92a5

Browse files
committed
modesetting: replace tabs by whitespace
Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
1 parent 516239c commit 6bc92a5

File tree

4 files changed

+35
-37
lines changed

4 files changed

+35
-37
lines changed

hw/xfree86/drivers/video/modesetting/dri2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ update_front(DrawablePtr draw, DRI2BufferPtr front)
530530

531531
static Bool
532532
can_exchange(ScrnInfoPtr scrn, DrawablePtr draw,
533-
DRI2BufferPtr front, DRI2BufferPtr back)
533+
DRI2BufferPtr front, DRI2BufferPtr back)
534534
{
535535
ms_dri2_buffer_private_ptr front_priv = front->driverPrivate;
536536
ms_dri2_buffer_private_ptr back_priv = back->driverPrivate;
@@ -578,7 +578,7 @@ can_exchange(ScrnInfoPtr scrn, DrawablePtr draw,
578578

579579
static Bool
580580
can_flip(ScrnInfoPtr scrn, DrawablePtr draw,
581-
DRI2BufferPtr front, DRI2BufferPtr back)
581+
DRI2BufferPtr front, DRI2BufferPtr back)
582582
{
583583
modesettingPtr ms = modesettingPTR(scrn);
584584

hw/xfree86/drivers/video/modesetting/driver.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ rotate_clip(PixmapPtr pixmap, xf86CrtcPtr crtc, BoxPtr rect, drmModeClip *clip,
538538
int x1, y1, x2, y2;
539539

540540
if (rotation == RR_Rotate_90 || rotation == RR_Rotate_270) {
541-
/* width and height are swapped if rotated 90 or 270 degrees */
541+
/* width and height are swapped if rotated 90 or 270 degrees */
542542
w = pixmap->drawable.height;
543543
h = pixmap->drawable.width;
544544
} else {
@@ -745,7 +745,7 @@ dispatch_dirty(ScreenPtr pScreen)
745745
if (!drmmode_crtc)
746746
continue;
747747

748-
drmmode_crtc_get_fb_id(crtc, &fb_id, &x, &y);
748+
drmmode_crtc_get_fb_id(crtc, &fb_id, &x, &y);
749749

750750
if (crtc->rotatedPixmap)
751751
pmap = crtc->rotatedPixmap;
@@ -909,9 +909,8 @@ msBlockHandler_oneshot(ScreenPtr pScreen, void *pTimeout)
909909

910910
Bool
911911
ms_window_has_variable_refresh(modesettingPtr ms, WindowPtr win) {
912-
struct ms_vrr_priv *priv = dixLookupPrivate(&win->devPrivates, &ms->drmmode.vrrPrivateKeyRec);
913-
914-
return priv->variable_refresh;
912+
struct ms_vrr_priv *priv = dixLookupPrivate(&win->devPrivates, &ms->drmmode.vrrPrivateKeyRec);
913+
return priv->variable_refresh;
915914
}
916915

917916
static void

hw/xfree86/drivers/video/modesetting/drmmode_display.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ get_modifiers_set(ScrnInfoPtr scrn, uint32_t format, uint64_t **modifiers,
209209
for (j = 0; j < iter->num_modifiers; j++) {
210210
Bool found = FALSE;
211211

212-
/* Don't choose multi-plane formats for our screen pixmap.
213-
* These will get used with frontbuffer rendering, which will
214-
* lead to worse-than-tearing with multi-plane formats, as the
215-
* primary and auxiliary planes go out of sync. */
216-
if (exclude_multiplane &&
212+
/* Don't choose multi-plane formats for our screen pixmap.
213+
* These will get used with frontbuffer rendering, which will
214+
* lead to worse-than-tearing with multi-plane formats, as the
215+
* primary and auxiliary planes go out of sync. */
216+
if (exclude_multiplane &&
217217
gbm_device_get_format_modifier_plane_count(drmmode->gbm,
218218
format,
219219
iter->modifiers[j]) > 1) {
@@ -413,9 +413,9 @@ drmmode_prop_info_update(drmmode_ptr drmmode,
413413

414414
static Bool
415415
drmmode_prop_info_copy(drmmode_prop_info_ptr dst,
416-
const drmmode_prop_info_rec *src,
417-
unsigned int num_props,
418-
Bool copy_prop_id)
416+
const drmmode_prop_info_rec *src,
417+
unsigned int num_props,
418+
Bool copy_prop_id)
419419
{
420420
unsigned int i;
421421

@@ -1822,7 +1822,7 @@ drmmode_set_cursor(xf86CrtcPtr crtc, int width, int height)
18221822
int ret = -EINVAL;
18231823

18241824
if (cursor == NullCursor)
1825-
return TRUE;
1825+
return TRUE;
18261826

18271827
ret = drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
18281828
handle, width, height,
@@ -3710,7 +3710,7 @@ static int parse_path_blob(drmModePropertyBlobPtr path_blob, int *conn_base_id,
37103710

37113711
static void
37123712
drmmode_create_name(ScrnInfoPtr pScrn, drmModeConnectorPtr koutput, char *name,
3713-
drmModePropertyBlobPtr path_blob)
3713+
drmModePropertyBlobPtr path_blob)
37143714
{
37153715
int ret;
37163716
char *extra_path;
@@ -3903,7 +3903,7 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
39033903
}
39043904

39053905
ms->is_connector_vrr_capable |=
3906-
drmmode_connector_check_vrr_capable(drmmode->fd,
3906+
drmmode_connector_check_vrr_capable(drmmode->fd,
39073907
drmmode_output->output_id);
39083908
return 1;
39093909

hw/xfree86/drivers/video/modesetting/present.c

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -461,25 +461,24 @@ ms_present_unflip(ScreenPtr screen, uint64_t event_id)
461461

462462
for (i = 0; i < config->num_crtc; i++) {
463463
xf86CrtcPtr crtc = config->crtc[i];
464-
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
465-
466-
if (!crtc->enabled)
467-
continue;
468-
469-
/* info->drmmode.fb_id still points to the FB for the last flipped BO.
470-
* Clear it, drmmode_set_mode_major will re-create it
471-
*/
472-
if (drmmode_crtc->drmmode->fb_id) {
473-
drmModeRmFB(drmmode_crtc->drmmode->fd,
474-
drmmode_crtc->drmmode->fb_id);
475-
drmmode_crtc->drmmode->fb_id = 0;
476-
}
477-
478-
if (drmmode_crtc->dpms_mode == DPMSModeOn)
479-
crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation,
480-
crtc->x, crtc->y);
481-
else
482-
drmmode_crtc->need_modeset = TRUE;
464+
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
465+
466+
if (!crtc->enabled)
467+
continue;
468+
469+
/* info->drmmode.fb_id still points to the FB for the last flipped BO.
470+
* Clear it, drmmode_set_mode_major will re-create it
471+
*/
472+
if (drmmode_crtc->drmmode->fb_id) {
473+
drmModeRmFB(drmmode_crtc->drmmode->fd, drmmode_crtc->drmmode->fb_id);
474+
drmmode_crtc->drmmode->fb_id = 0;
475+
}
476+
477+
if (drmmode_crtc->dpms_mode == DPMSModeOn)
478+
crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation,
479+
crtc->x, crtc->y);
480+
else
481+
drmmode_crtc->need_modeset = TRUE;
483482
}
484483

485484
present_event_notify(event_id, 0, 0);

0 commit comments

Comments
 (0)