diff options
author | Jason Ekstrand <[email protected]> | 2017-11-03 10:36:32 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-28 13:31:42 -0800 |
commit | a2c1e48f15995a826dc759e064c2603882a37e0c (patch) | |
tree | 8bf0bd05a7df7bd80ed98f995f6b42c9e5be1a83 /src/mesa/drivers/dri/i965/brw_misc_state.c | |
parent | 67da59e320bd5f797f6bdc3ab111f33c64e16811 (diff) |
i965: Only emit 3DSTATE_DRAWING_RECTANGLE once on gen8+
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_misc_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index c4ef6812bff..2d2517d2bdf 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -573,6 +573,15 @@ brw_upload_invariant_state(struct brw_context *brw) BEGIN_BATCH(1); OUT_BATCH(_3DSTATE_VF_STATISTICS << 16 | 1); ADVANCE_BATCH(); + + if (devinfo->gen >= 8) { + BEGIN_BATCH(4); + OUT_BATCH(_3DSTATE_DRAWING_RECTANGLE << 16 | 1); + OUT_BATCH(0); + OUT_BATCH(~0); + OUT_BATCH(0); + ADVANCE_BATCH(); + } } /** |