aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-11-06 10:31:30 +1100
committerTimothy Arceri <[email protected]>2017-11-07 09:14:05 +1100
commita9000cb860242d2d0308aec3e8fc20148a2c5eec (patch)
tree082bcbc8ad029bfd9003d2557444c16653e2e521 /src/mesa
parent201b3b8d0d2359f56d8797867f59047cce5d160d (diff)
i965: disable NIR linking on HSW and below
Fixes: 379b24a40d3d "i965: make use of nir linking" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103537 Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_link.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
index 9019db56aa0..6ac4ecc0d8e 100644
--- a/src/mesa/drivers/dri/i965/brw_link.cpp
+++ b/src/mesa/drivers/dri/i965/brw_link.cpp
@@ -272,8 +272,11 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
* ensures that inter-shader outputs written to in an earlier stage
* are eliminated if they are (transitively) not used in a later
* stage.
+ *
+ * TODO: Look into Shadow of Mordor regressions on HSW and enable this for
+ * all platforms. See: https://bugs.freedesktop.org/show_bug.cgi?id=103537
*/
- if (first != last) {
+ if (first != last && brw->screen->devinfo.gen >= 8) {
int next = last;
for (int i = next - 1; i >= 0; i--) {
if (shProg->_LinkedShaders[i] == NULL)