mesa/src
Keith Packard 3fbd1b0cb5 dri3: Track current Present swap mode and adjust buffer counts
This automatically adjusts the number of buffers that we want based on
what swapping mode the X server is using and the current swap interval:

        swap mode       interval        buffers
        copy            > 0             1
        copy            0               2
        flip            > 0             2
        flip            0               3

Note that flip with swap interval 0 is currently limited to twice the
underlying refresh rate because of how the kernel manages flipping. Moving
from 3 to 4 buffers would help, but that seems ridiculous.

v2: Just update num_back at the point that the values that change num_back
    change.  This means we'll have the updated value at the point that the
    freeing of old going-to-be-unused backbuffers happens, which might not
    have been the case before (change by anholt, acked by keithp).

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
2014-01-30 17:29:33 -08:00
..
egl build: Share the all-local rule for linking libraries into the build dir 2014-01-29 12:58:13 -08:00
gallium r600g: Removed unnecessary positivity check for unsigned int variable. 2014-01-31 00:50:08 +01:00
gbm build: Share the all-local rule for linking libraries into the build dir 2014-01-29 12:58:13 -08:00
getopt
glsl glsl: s/_NDEBUG/NDEBUG/ 2014-01-29 19:52:35 +00:00
glx dri3: Track current Present swap mode and adjust buffer counts 2014-01-30 17:29:33 -08:00
gtest gtest: enable subdir-objects to prevent automake warnings 2013-11-16 14:01:27 +00:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader loader: do not print the pci id during normal operation 2014-01-29 19:55:02 +00:00
mapi build: Share the all-local rule for linking libraries into the build dir 2014-01-29 12:58:13 -08:00
mesa dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888 2014-01-30 17:29:23 -08:00
Makefile.am loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00