[Mesa-dev] [PATCH 2/2] gallium: add texture update hook to screen

Jose Fonseca jfonseca at vmware.com
Tue Mar 19 04:07:03 PDT 2013


----- Original Message -----
> On Tue, Mar 19, 2013 at 8:29 AM, Dave Airlie <airlied at gmail.com> wrote:
> >> Errr, what about using flush_frontbuffer, it seems todo
> >> the exact same thing.
> > Hmm I wonder if I could overload it actually I hadn't considered that,
> > its not exactly the same thing,
> > but its pretty close to what I'd want to do alright.
> 
> It was used on windows to call the magical present ioctl,
> its also used by llvm to flush pixels from the tile cache to the linear
> displaytarget store, or at least it used to, not so sure now.

I don't recall ever being used on windows -- it was never generic enough for that -- but the intent of that method is indeed "presentation of a surface", which seems what's in question here.

I wish we had a proper cross-platform "present" method we could use everywhere.

But yes, I'd prefer we'd try use/extend the exiting "flush_frontbuffer" before attempting to add a new method.

> The void* backend thingy is a remnant from the windows days.

I'm pretty sure this predates windows support in gallium and is based of DRI's flushFrontBuffer method...

Jose


More information about the mesa-dev mailing list