Mailinglist Archive: radeonhd (408 mails)

< Previous Next >
[radeonhd] [PATCH] Fix incorrectly reporting XAA/EXA init as failing for r5xx
  • From: Yang Zhao <yang@xxxxxxxxxx>
  • Date: Wed, 3 Jun 2009 12:43:06 -0700
  • Message-id: <40a7b1aa0906031243k1bf6a171r3abef3d17e25c9a0@xxxxxxxxxxxxxx>
Oops, missed a few braces.

--
Yang Zhao
http://yangman.ca
From 189e809241b34de0770c92574a7871619cf49103 Mon Sep 17 00:00:00 2001
From: Yang Zhao <yang@xxxxxxxxxx>
Date: Wed, 3 Jun 2009 12:33:59 -0700
Subject: [PATCH] Fix incorrectly reporting XAA/EXA init as failing for r5xx

Oops, missed some braces.

Signed-off-by: Yang Zhao <yang@xxxxxxxxxx>
---
src/rhd_driver.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/rhd_driver.c b/src/rhd_driver.c
index 0ff1706..e9f2de9 100644
--- a/src/rhd_driver.c
+++ b/src/rhd_driver.c
@@ -1154,10 +1154,11 @@ RHDScreenInit(int scrnIndex, ScreenPtr pScreen, int
argc, char **argv)
break;
case RHD_ACCEL_XAA:
if (rhdPtr->ChipSet < RHD_R600) {
- if (!R5xxXAAInit(pScrn, pScreen))
+ if (!R5xxXAAInit(pScrn, pScreen)) {
rhdPtr->AccelMethod = RHD_ACCEL_NONE;
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"Failed to initalize XAA; disabling
acceleration.\n");
+ }
} else {
rhdPtr->AccelMethod = RHD_ACCEL_NONE;
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
@@ -1167,10 +1168,11 @@ RHDScreenInit(int scrnIndex, ScreenPtr pScreen, int
argc, char **argv)
#ifdef USE_DRI
case RHD_ACCEL_EXA:
if (rhdPtr->ChipSet < RHD_R600) {
- if (!R5xxEXAInit(pScrn, pScreen))
+ if (!R5xxEXAInit(pScrn, pScreen)) {
rhdPtr->AccelMethod = RHD_ACCEL_NONE;
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"Failed to initalize EXA; disabling
acceleration.\n");
+ }
} else {
if (!R6xxEXAInit(pScrn, pScreen)) {
rhdPtr->AccelMethod = RHD_ACCEL_NONE;
--
1.6.0.6

< Previous Next >
This Thread
Follow Ups