Skip to contentSkip to conversation

Adding an fb_sync() operation to fb_ops

DISCUSSION Antonino Daplas 1 participant 1 message Jun 3, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 13 lines · Matthew J

So here is the obvious problem case.

Application mmap's the framebuffer.
Application Draws some pixels into the framebuffer. Application issues an ioctl that would lead to a blit, the command is put
in a ring buffer but hasn't happened yet.
The application draws some more pixels (via the mmap) in a region that
intersects the previously blitted region.
The hardware gets around to the blit command and overwrites the pixels you
just put in the frambuffer.

And it does not have to happen outside the kernel. Within the kernel too. For instance, a particular accelerator may only support fillrect and copyarea, but not imageblit (neofb). It has no choice but to mix in cfb_imageblit and the sync problem will arise unless the accelerator forces a sync -- which neofb does by the way.

Tony

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm