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:
@@ -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... */
|
/* all older cards have a supported bes */
|
||||||
switch (si->ps.card_arch)
|
if ((si->ps.card_type <= NV40) || (si->ps.card_type == NV45))
|
||||||
{
|
{
|
||||||
case NV04A:
|
|
||||||
case NV10A:
|
|
||||||
case NV20A:
|
|
||||||
case NV30A:
|
|
||||||
/* all older 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;
|
|
||||||
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));
|
|
||||||
return B_OK;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
/* all NV40 architecture cards have a new HDTV capable bes except for
|
|
||||||
* GeForce 6800's. Unfortunately we have no info about the new bes yet. */
|
|
||||||
LOG(4, ("Overlay: Not exporting hook %s.\n", msg));
|
|
||||||
return B_ERROR;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
|
LOG(4, ("Overlay: Not exporting hook %s.\n", msg));
|
||||||
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t check_acc_capability(uint32 feature)
|
status_t check_acc_capability(uint32 feature)
|
||||||
|
|||||||
@@ -535,8 +535,9 @@ 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 */
|
||||||
target->flags |= B_SUPPORTS_OVERLAYS;
|
if ((si->ps.card_type <= NV40) || (si->ps.card_type == NV45))
|
||||||
|
target->flags |= B_SUPPORTS_OVERLAYS;
|
||||||
|
|
||||||
LOG(1, ("PROPOSEMODE: validated modeflags: $%08x\n", target->flags));
|
LOG(1, ("PROPOSEMODE: validated modeflags: $%08x\n", target->flags));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user