On Sun, 2002-05-19 at 23:08, Denis Oliver Kropp wrote: > > Because I wanted to eliminte this 'tearing' effect, I modified > > allocate_surface() so it also passes DSCAPS_FLIPPING depending on the > > buffermode. I also experimented with mplayer and modified it so it > > renders to the backbuffer then calls layer->Flip() afterwards. The > > tearing effects disappear this way. Also, flipping, instead of > > blitting, effectively bypasses the YV12 blit problem. > > The default configuration is defined by the driver. All drivers use > non-flipping as default. IDirectFBDisplayLayer::SetConfiguration() can > be used to change the buffer mode. >
But buffermode changes in SetConfiguration() require a call to reallocate_surface, which as you've said before, does not support it yet. It does exit with an error message though. > > Another thing I noticed is that all of the gfxdriver's > > xxxTestConfiguration() will not fail if config->flags == > > DLCONF_BUFFERMODE and config->buffermode == DLBM_BACKVIDEO. This might > > confuse the client that buffer flipping is supported when it is actually > > not. > > It's supported but not fully implemented... > True, I've actually tested that FlipBuffers() work. It's just that allocate_surface misses out on the DSCAPS_FLIPPING and reallocate_surface does not support buffermode changes. Nothing urgent, just that rendering to the backbuffer is so much prettier :) Thanks for the time. Tony -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
