[Mesa-dev] [PATCH 10/11] i965/eu: Update jump distance scaling for Broadwell.

Kenneth Graunke kenneth at whitecape.org
Sat Aug 9 14:28:50 PDT 2014


Broadwell measures jump distances in bytes, so we need to scale by 16.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_eu_emit.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 3d9c96a..0a66d0c 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1180,6 +1180,10 @@ void brw_NOP(struct brw_compile *p)
 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.
     */
-- 
2.0.0



More information about the mesa-dev mailing list