Re: [Mesa-dev] [PATCH 09/11] i965/eu: Refactor jump distance scaling to use a helper function.

2014-08-10 Thread Matt Turner
On Sat, Aug 9, 2014 at 2:28 PM, Kenneth Graunke kenn...@whitecape.org wrote: Different generations of hardware measure jump distances in different units. Previously, every function that needed to set a jump target open coded this scaling, or made a hardcoded assumption (i.e. just used 2).

Re: [Mesa-dev] [PATCH 09/11] i965/eu: Refactor jump distance scaling to use a helper function.

2014-08-10 Thread Kenneth Graunke
On Sunday, August 10, 2014 01:47:31 AM Matt Turner wrote: On Sat, Aug 9, 2014 at 2:28 PM, Kenneth Graunke kenn...@whitecape.org wrote: [snip] diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 665fc07..3d9c96a 100644 ---

[Mesa-dev] [PATCH 09/11] i965/eu: Refactor jump distance scaling to use a helper function.

2014-08-09 Thread Kenneth Graunke
Different generations of hardware measure jump distances in different units. Previously, every function that needed to set a jump target open coded this scaling, or made a hardcoded assumption (i.e. just used 2). Most functions start with the number of instructions to jump, and scale up to the