simplified and fixed overlay capability reporting code.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2005-11-24 11:14:49 +00:00
parent bef1ed93e1
commit c484bc2197
2 changed files with 11 additions and 29 deletions
@@ -4,7 +4,7 @@
Other authors: Other authors:
Mark Watson, Mark Watson,
Rudolf Cornelissen 10/2002-10/2005 Rudolf Cornelissen 10/2002-11/2005
*/ */
#define MODULE_BIT 0x08000000 #define MODULE_BIT 0x08000000
@@ -175,36 +175,17 @@ status_t check_overlay_capability(uint32 feature)
break; break;
} }
/* all supported cards have a bes, but... */
switch (si->ps.card_arch)
{
case NV04A:
case NV10A:
case NV20A:
case NV30A:
/* all older cards have a supported bes */ /* all older cards have a supported bes */
LOG(4, ("Overlay: Exporting hook %s.\n", msg)); if ((si->ps.card_type <= NV40) || (si->ps.card_type == NV45))
return B_OK;
break;
case NV40A:
default:
switch (si->ps.card_type)
{ {
case NV40:
case NV45:
/* all GeForce 6800's cards have a supported bes */
LOG(4, ("Overlay: Exporting hook %s.\n", msg)); LOG(4, ("Overlay: Exporting hook %s.\n", msg));
return B_OK; return B_OK;
break; }
default:
/* all NV40 architecture cards have a new HDTV capable bes except for /* all newer NV40 architecture cards have a new HDTV capable bes except for
* GeForce 6800's. Unfortunately we have no info about the new bes yet. */ * GeForce 6800's. Unfortunately we have no info about the new bes yet. */
LOG(4, ("Overlay: Not exporting hook %s.\n", msg)); LOG(4, ("Overlay: Not exporting hook %s.\n", msg));
return B_ERROR; return B_ERROR;
break;
}
break;
}
} }
status_t check_acc_capability(uint32 feature) status_t check_acc_capability(uint32 feature)
@@ -535,7 +535,8 @@ status_t PROPOSE_DISPLAY_MODE(display_mode *target, const display_mode *low, con
if (si->settings.hardcursor) if (si->settings.hardcursor)
target->flags |= B_HARDWARE_CURSOR; target->flags |= B_HARDWARE_CURSOR;
/* set SUPPORTS_OVERLAYS */ /* set SUPPORTS_OVERLAYS if suitable */
if ((si->ps.card_type <= NV40) || (si->ps.card_type == NV45))
target->flags |= B_SUPPORTS_OVERLAYS; target->flags |= B_SUPPORTS_OVERLAYS;
LOG(1, ("PROPOSEMODE: validated modeflags: $%08x\n", target->flags)); LOG(1, ("PROPOSEMODE: validated modeflags: $%08x\n", target->flags));