diff options
author | Kenneth Graunke <[email protected]> | 2013-07-03 13:54:53 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-09 14:09:04 -0700 |
commit | e33439045d296a218209721cc69176bfef7c4e70 (patch) | |
tree | 9d12e3b6e9748a3a34017867a77caf1d9e25f6b9 /src/mesa/drivers/dri/i965/intel_context.c | |
parent | fe0a8cb30dd53bed0d024b01e2c2b60911a3c526 (diff) |
i965: Move intel_context's driconf flags to brw_context.
Signed-off-by: Kenneth Graunke <[email protected]>
Acked-by: Chris Forbes <[email protected]>
Acked-by: Paul Berry <[email protected]>
Acked-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 8a8d2e2e438..0b9a619b630 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -284,7 +284,7 @@ intel_prepare_render(struct brw_context *brw) * so we just us the first batch we emitted after the last swap. */ if (intel->need_throttle && intel->first_post_swapbuffers_batch) { - if (!intel->disable_throttling) + if (!brw->disable_throttling) drm_intel_bo_wait_rendering(intel->first_post_swapbuffers_batch); drm_intel_bo_unreference(intel->first_post_swapbuffers_batch); intel->first_post_swapbuffers_batch = NULL; @@ -589,17 +589,17 @@ intelInitContext(struct brw_context *brw, if (driQueryOptionb(&brw->optionCache, "always_flush_batch")) { fprintf(stderr, "flushing batchbuffer before/after each draw call\n"); - intel->always_flush_batch = 1; + brw->always_flush_batch = 1; } if (driQueryOptionb(&brw->optionCache, "always_flush_cache")) { fprintf(stderr, "flushing GPU caches before/after each draw call\n"); - intel->always_flush_cache = 1; + brw->always_flush_cache = 1; } if (driQueryOptionb(&brw->optionCache, "disable_throttling")) { fprintf(stderr, "disabling flush throttling\n"); - intel->disable_throttling = 1; + brw->disable_throttling = 1; } return true; |