i965: disable NIR linking on HSW and below

Fixes: 379b24a40d "i965: make use of nir linking"

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103537
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Timothy Arceri 2017-11-06 10:31:30 +11:00
parent 201b3b8d0d
commit a9000cb860
1 changed files with 4 additions and 1 deletions

View File

@ -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)