diff options
author | Eric Anholt <eric@anholt.net> | 2009-03-05 17:08:36 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-05 19:42:17 -0800 |
commit | f3687284c12f34268172b9c60e2effd697162129 (patch) | |
tree | b5bb7027a8fe30254c973152eaf3eb68fd9b59ed /src/mesa/drivers/dri/intel/intel_context.c | |
parent | 98826950529041a022f736d183b52421eedead31 (diff) |
intel: Add always_flush_cache driconf option for debugging cache flush failure.
I keep wanting to hack this knob in as a one-time thing, so it seemed useful
to have all the time.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 65853234f1..8c74d946a0 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -618,6 +618,11 @@ intelInitContext(struct intel_context *intel, intel->no_rast = 1; } + if (driQueryOptionb(&intel->optionCache, "always_flush_cache")) { + fprintf(stderr, "flushing GPU caches before/after each draw call\n"); + intel->always_flush_cache = 1; + } + /* Disable all hardware rendering (skip emitting batches and fences/waits * to the kernel) */ |