Hi List,
I'm having problems with a software that uses DirectFB for rendering. It
tries to use the DLOP_ALPHACHANNEL option, but after calling to
TestConfiguration a get a failed_flags value of 16, which means
that the option could not be set. I'm using X11 as my backend, with a nVidia
7200 Card. I have GLX extensions enabled.
Do you know what could be the problem?
This is the code:
DFBCHECK(gfxLayer->GetConfiguration(gfxLayer, &layer_config));
wRes = layer_config.width;
hRes = layer_config.height;
/*if ((ret = gfxLayer->SetCooperativeLevel(
gfxLayer, DLSCL_EXCLUSIVE)) != DFB_OK)
DirectFBError("IDirectFBScreen::SetCooperativeLevel",
ret);*/
layer_config.flags = (DFBDisplayLayerConfigFlags)
(DLCONF_BUFFERMODE | DLCONF_OPTIONS);
layer_config.buffermode = DLBM_BACKVIDEO;
* layer_config.options = DLOP_ALPHACHANNEL;*
DFBDisplayLayerConfigFlags failed_flags;
if ((ret = gfxLayer->TestConfiguration(
gfxLayer, &layer_config, &failed_flags)) != DFB_OK) {
* std::cerr << "flags: [" << failed_flags << "]" <<
std::endl;**
DirectFBError(
"gingacc-systemio DFBDeviceScreen TestConfig error:
",
ret);
*
} else {
DFBCHECK(gfxLayer->
SetConfiguration(gfxLayer, &layer_config));
}
}
The output:
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2009 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2010-08-19 20:31)
(*) Direct/Thread: Started 'X11 Input' (-1) [INPUT OTHER/OTHER 0/0]
<8388608>...
(*) DirectFB/Input: X11 Input 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) X11/Display: Not using XShm.
flags: [16]
(#) DirectFBError [gingacc-systemio DFBDeviceScreen TestConfig error: ]: Not
supported!
Part of my X11 log:
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Aug 31 08:48:44 NVIDIA(0): Enabling RENDER acceleration
(II) Aug 31 08:48:44 NVIDIA(0): Support for GLX with the Damage and
Composite X extensions is
(II) Aug 31 08:48:44 NVIDIA(0): enabled.
(II) Aug 31 08:48:45 NVIDIA(0): NVIDIA GPU GeForce 7300 SE/7200 GS (G72) at
PCI:1:0:0 (GPU-0)
(--) Aug 31 08:48:45 NVIDIA(0): Memory: 524288 kBytes
(--) Aug 31 08:48:45 NVIDIA(0): VideoBIOS: 05.72.22.81.07
(II) Aug 31 08:48:45 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Aug 31 08:48:45 NVIDIA(0): Interlaced video modes are supported on this
GPU
(--) Aug 31 08:48:45 NVIDIA(0): Connected display device(s) on GeForce 7300
SE/7200 GS at
(--) Aug 31 08:48:45 NVIDIA(0): PCI:1:0:0:
(--) Aug 31 08:48:45 NVIDIA(0): DELL 2009W (DFP-0)
(--) Aug 31 08:48:45 NVIDIA(0): DELL 2009W (DFP-0): 165.0 MHz maximum pixel
clock
(--) Aug 31 08:48:45 NVIDIA(0): DELL 2009W (DFP-0): Internal Single Link
TMDS
(II) Aug 31 08:48:45 NVIDIA(0): Assigned Display Device: DFP-0
(==) Aug 31 08:48:45 NVIDIA(0):
(==) Aug 31 08:48:45 NVIDIA(0): No modes were requested; the default mode
"nvidia-auto-select"
(==) Aug 31 08:48:45 NVIDIA(0): will be used as the requested mode.
(==) Aug 31 08:48:45 NVIDIA(0):
(II) Aug 31 08:48:45 NVIDIA(0): Validated modes:
(II) Aug 31 08:48:45 NVIDIA(0): "nvidia-auto-select"
(II) Aug 31 08:48:45 NVIDIA(0): Virtual screen size determined to be 1680 x
1050
(--) Aug 31 08:48:45 NVIDIA(0): DPI set to (99, 98); computed from
"UseEdidDpi" X config
(--) Aug 31 08:48:45 NVIDIA(0): option
(==) Aug 31 08:48:45 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) Aug 31 08:48:45 NVIDIA(0): Initialized GPU GART.
(II) Aug 31 08:48:45 NVIDIA(0): ACPI: failed to connect to the ACPI event
daemon; the daemon
(II) Aug 31 08:48:45 NVIDIA(0): may not be running or the
"AcpidSocketPath" X
(II) Aug 31 08:48:45 NVIDIA(0): configuration option may not be set
correctly. When the
(II) Aug 31 08:48:45 NVIDIA(0): ACPI event daemon is available, the
NVIDIA X driver will
(II) Aug 31 08:48:45 NVIDIA(0): try to use it to receive ACPI event
notifications. For
(II) Aug 31 08:48:45 NVIDIA(0): details, please see the "ConnectToAcpid"
and
(II) Aug 31 08:48:45 NVIDIA(0): "AcpidSocketPath" X configuration
options in Appendix B: X
(II) Aug 31 08:48:45 NVIDIA(0): Config Options in the README.
(II) Aug 31 08:48:45 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) Aug 31 08:48:45 NVIDIA(0): Initialized OpenGL Acceleration
Thanks!
--
federico
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev