mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
82ddd517af
commit
db64c2eee2
1 changed files with 4 additions and 0 deletions
|
|
@ -326,6 +326,10 @@ void brw_shader_time_add(struct brw_compile *p,
|
||||||
static inline unsigned
|
static inline unsigned
|
||||||
brw_jump_scale(const struct brw_context *brw)
|
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
|
/* Ironlake and later measure jump targets in 64-bit data chunks (in order
|
||||||
* (to support compaction), so each 128-bit instruction requires 2 chunks.
|
* (to support compaction), so each 128-bit instruction requires 2 chunks.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue