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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user