From 0ae360f098d88450f73f2b2176a6839ab593da2a Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Fri, 15 Apr 2016 14:03:18 +0300 Subject: [PATCH] i965/blorp: Do not tricker urb re-configuration unnecessarily Signed-off-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_blorp.cpp | 4 +++- src/mesa/drivers/dri/i965/gen7_blorp.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp.cpp b/src/mesa/drivers/dri/i965/brw_blorp.cpp index 5f0083c1029..ce09b099005 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp.cpp @@ -284,10 +284,12 @@ retry: if (unlikely(brw->always_flush_batch)) intel_batchbuffer_flush(brw); + const uint64_t do_not_smash_bits = BRW_NEW_URB_SIZE; + /* We've smashed all state compared to what the normal 3D pipeline * rendering tracks for GL. */ - brw->ctx.NewDriverState = ~0ull; + brw->ctx.NewDriverState |= ~do_not_smash_bits; brw->no_depth_or_stencil = false; brw->ib.type = -1; diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.cpp b/src/mesa/drivers/dri/i965/gen7_blorp.cpp index c6f95492de2..e1e855951f8 100644 --- a/src/mesa/drivers/dri/i965/gen7_blorp.cpp +++ b/src/mesa/drivers/dri/i965/gen7_blorp.cpp @@ -74,6 +74,8 @@ gen7_blorp_emit_urb_config(struct brw_context *brw) if (gen7_blorp_skip_urb_config(brw)) return; + brw->ctx.NewDriverState |= BRW_NEW_URB_SIZE; + gen7_emit_push_constant_state(brw, urb_size / 2 /* vs_size */, 0 /* hs_size */, -- 2.30.2