Mesa (master): i965/fs: Use measured Gen7 instruction timings on Gen6.
Matt Turner
mattst88 at kemper.freedesktop.org
Fri Mar 29 17:22:51 UTC 2013
Module: Mesa
Branch: master
Commit: 0e0ab8a071c86b4de1c257c350bfa0e4b7e478c2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e0ab8a071c86b4de1c257c350bfa0e4b7e478c2
Author: Matt Turner <mattst88 at gmail.com>
Date: Thu Mar 28 11:38:57 2013 -0700
i965/fs: Use measured Gen7 instruction timings on Gen6.
x before
+ after
+------------------------------------------------------------------------------+
| x x + |
| xx ++ x + |
| xx ++ + xx ++ |
|x xxx x+++++ + xxx x*x+*+++ + x +|
| |_____|____________A______A____M____M_|_______| |
+------------------------------------------------------------------------------+
N Min Max Median Avg Stddev
x 23 8083.78 8287.83 8205.55 8162.7461 68.307951
+ 23 8107.56 8358.74 8224.33 8186.1765 71.506301
No difference proven at 95.0% confidence
Reviewed-by: Eric Anholt <eric at anholt.net>
---
.../dri/i965/brw_fs_schedule_instructions.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
index f0ef470..90f1a16 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
@@ -67,7 +67,10 @@ public:
this->parent_count = 0;
this->unblocked_time = 0;
- if (intel->gen >= 7)
+ /* We can't measure Gen6 timings directly but expect them to be much
+ * closer to Gen7 than Gen4.
+ */
+ if (intel->gen >= 6)
set_latency_gen7(intel->is_haswell);
else
set_latency_gen4();
More information about the mesa-commit
mailing list