i965: Add a driconf option to disable flush throttling.
authorPaul Berry <stereotype441@gmail.com>
Tue, 19 Mar 2013 18:49:08 +0000 (11:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 21 Mar 2013 20:24:43 +0000 (13:24 -0700)
commiteea30dff43a5c9478e9e6056d0a8086b50a0bcb5
tree04e0d97ea7b9c4608c7fcf259481b76dfaf4d875
parent12dc4be8a66c92ce04637abc54ed85ac7ff9aa13
i965: Add a driconf option to disable flush throttling.

Normally when submitting the first batch buffer after a flush, we
check whether the GPU has completed processing of the first batch
buffer of the previous frame.  If it hasn't, we wait for it to finish
before submitting any more batches.  This prevents GPU-heavy and
CPU-light applications from racing too far ahead of the current frame,
but at the expense of possibly lower frame rates.  Sometimes when
benchmarking we want to disable this mechanism.

This patch adds the driconf option "disable_throttling" to disable the
throttling mechanism.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/common/xmlpool/t_options.h
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_screen.c