Mesa (master): i965/eu: Update jump distance scaling for Broadwell.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 11 02:31:16 UTC 2014


Module: Mesa
Branch: master
Commit: db64c2eee23d58fa9bfeda8f7dca82889fc6aea1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db64c2eee23d58fa9bfeda8f7dca82889fc6aea1

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Thu Jul  3 15:01:58 2014 -0700

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 <kenneth at whitecape.org>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_eu.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
index 3e03ab8..93f0345 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.
     */




More information about the mesa-commit mailing list