[Nouveau] [PATCH] drmmode_display: Resolve missing brackets
Emil Velikov
emil.l.velikov at gmail.com
Mon Jul 18 16:35:38 PDT 2011
Correct some missing/misplaced brackets in drmmode_pre_init()
The issue was exposed when trying a 4 monitor desktop using two
cards/gpus
Resolves https://bugs.freedesktop.org/show_bug.cgi?id=39099
Reported-By: Damian Nowak <nowaker at geozone.pl>
Tested-By: Damian Nowak <nowaker at geozone.pl>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/drmmode_display.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index e5e4673..3afef66 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1185,8 +1185,8 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp)
xf86CrtcSetSizeRange(pScrn, 320, 200, drmmode->mode_res->max_width,
drmmode->mode_res->max_height);
for (i = 0; i < drmmode->mode_res->count_crtcs; i++) {
- if (!xf86IsEntityShared(pScrn->entityList[0] ||
- pScrn->confScreen->device->screen == i))
+ if (!xf86IsEntityShared(pScrn->entityList[0]) ||
+ (pScrn->confScreen->device->screen == i))
drmmode_crtc_init(pScrn, drmmode, i);
}
--
1.7.6
More information about the Nouveau
mailing list