From 8a72136d5fdf7a5cdc59219a57fcd2428530f5f0 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Tue, 31 Jan 2006 14:17:20 +0000 Subject: [PATCH] now blocking SCALED_BLIT hook export on modes with space B_CMAP8. We won't support this space, at least for now. It's not yet testable for me, and this space is partial supported only (at best), on some cards outthere. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16171 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/GetAccelerantHook.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/GetAccelerantHook.c b/src/add-ons/accelerants/nvidia/GetAccelerantHook.c index 4fd45143d1..d6d8774c33 100644 --- a/src/add-ons/accelerants/nvidia/GetAccelerantHook.c +++ b/src/add-ons/accelerants/nvidia/GetAccelerantHook.c @@ -4,7 +4,7 @@ Other authors: Mark Watson, - Rudolf Cornelissen 10/2002-12/2005 + Rudolf Cornelissen 10/2002-1/2006 */ #define MODULE_BIT 0x08000000 @@ -212,8 +212,10 @@ status_t check_acc_capability(uint32 feature) break; case B_SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT: msg = "B_SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT"; - /* this function is only defined for DMA acceleration */ - if (!si->settings.dma_acc) + /* this function is only defined for DMA acceleration, + * but doesn't support the B_CMAP8 colorspace */ + //fixme: checkout B_CMAP8 support sometime, as some cards seem to support it? + if (!si->settings.dma_acc || (si->dm.space == B_CMAP8)) { LOG(4, ("Acc: Not exporting hook %s.\n", msg)); return B_ERROR;