diff options
author | Kenneth Graunke <[email protected]> | 2017-09-15 17:47:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-09-15 21:51:45 -0700 |
commit | 4f8d1af0f6f45e4f62c9456b018e9945df1e6054 (patch) | |
tree | 3443a5a7544c0df172ff87408493760f09fa8f3f /src/mesa/drivers | |
parent | 3115687f9b9830417c408228db2bc679e346bba6 (diff) |
i965: Add an INTEL_DEBUG=reemit option.
Jason and I use this for debugging all the time. Recompiling the driver
to enable it is kind of annoying. It's a great thing to try along with
always_flush_batch=true and always_flush_cache=true to detect a class of
problems - namely, atoms listening to an insufficient set of dirty bits.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 7b31aad170a..2834cca6392 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -480,7 +480,7 @@ brw_upload_pipeline_state(struct brw_context *brw, brw_select_pipeline(brw, pipeline); - if (0) { + if (unlikely(INTEL_DEBUG & DEBUG_REEMIT)) { /* Always re-emit all state. */ brw->NewGLState = ~0; ctx->NewDriverState = ~0ull; |