summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2017-11-06 10:31:30 +1100
committerEmil Velikov <emil.l.velikov@gmail.com>2017-11-13 17:17:15 +0000
commit2567e1de88e2989f4ae089eb534131ced589068c (patch)
tree7ea717609b90342d5d1001094d17622f92c217b5
parent3111ec7bdbe4645b3d8099fa53afc599f1f27a39 (diff)
downloadmesa-2567e1de88e2989f4ae089eb534131ced589068c.tar.gz
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 <itoral@igalia.com> (cherry picked from commit a9000cb860242d2d0308aec3e8fc20148a2c5eec)
-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 69546a6b9e4..3bc5c46fad7 100644
--- a/src/mesa/drivers/dri/i965/brw_link.cpp
+++ b/src/mesa/drivers/dri/i965/brw_link.cpp
@@ -268,8 +268,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)