diff options
author | Eric Anholt <eric@anholt.net> | 2014-03-07 15:56:06 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-13 14:19:16 -0700 |
commit | 0b02d8a633da7ee19793eb12bb5ea407afe0de6f (patch) | |
tree | 4c6429ba526212b166b1ffb6e74a4ba4ee220633 /src/glx/dri3_priv.h | |
parent | 551d459af421a2eb937e9e16301bb64da4624f89 (diff) |
dri3: Prefer the last chosen back when finding a new one.
With the buffer_age code, I need to be able to potentially call this more
than once per frame, and it would be bad if a new special event showing up
meant I chose a different back mid-frame. Now, once we've chosen a back
for the frame, another find_back will choose it again since we know that
it won't have ->busy set until swap.
Note that this makes find_back return a buffer id instead of a backbuffer
index. That's kind of a silly distinction anyway, since it's an identity
mapping between the two (it's the front buffer that is at an offset).
Reviewed-By: Adel Gadllah <adel.gadllah@gmail.com>
Diffstat (limited to 'src/glx/dri3_priv.h')
0 files changed, 0 insertions, 0 deletions