diff options
author | Kenneth Graunke <[email protected]> | 2014-07-03 15:01:58 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-08-10 19:32:34 -0700 |
commit | db64c2eee23d58fa9bfeda8f7dca82889fc6aea1 (patch) | |
tree | b619ed17ac862687e226d783d83f12ba070d4204 /src/mesa | |
parent | 82ddd517afad7b133624e8dd32e90addfff27d1e (diff) |
i965/eu: Update jump distance scaling for Broadwell.
Broadwell measures jump distances in bytes, so we need to scale by 16.
v2: Update the function in brw_eu.h, not in brw_eu_emit.c.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index 3e03ab82cc0..93f03454a27 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -326,6 +326,10 @@ void brw_shader_time_add(struct brw_compile *p, static inline unsigned brw_jump_scale(const struct brw_context *brw) { + /* Broadwell measures jump targets in bytes. */ + if (brw->gen >= 8) + return 16; + /* Ironlake and later measure jump targets in 64-bit data chunks (in order * (to support compaction), so each 128-bit instruction requires 2 chunks. */ |