From: Kenneth Graunke Date: Mon, 4 Nov 2013 22:09:07 +0000 (-0800) Subject: i965: Skip the register write check on Broadwell. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=decf070258f396223aac6f57e22540a304986e54;p=mesa.git i965: Skip the register write check on Broadwell. MI_STORE_REGISTER_MEM has to take a 48-bit address, so the existing code doesn't work. But supposedly Broadwell has a register whitelist and just works out of the box anyway, so there's no need to check. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index ab27d43ca83..2d5b6c64614 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -42,6 +42,10 @@ static bool can_do_pipelined_register_writes(struct brw_context *brw) { + /* Supposedly, Broadwell just works. */ + if (brw->gen >= 8) + return true; + /* We use SO_WRITE_OFFSET0 since you're supposed to write it (unlike the * statistics registers), and we already reset it to zero before using it. */ @@ -50,7 +54,7 @@ can_do_pipelined_register_writes(struct brw_context *brw) const int offset = 100; /* The register we picked only exists on Gen7+. */ - assert(brw->gen >= 7); + assert(brw->gen == 7); uint32_t *data; /* Set a value in a BO to a known quantity. The workaround BO already