Revert "i965: Delete linked GLSL IR when using NIR."

This reverts commit 104c8fc2c2.
This commit is contained in:
Kenneth Graunke 2015-06-28 22:17:09 -07:00
parent 61912036d1
commit cae701fc8e

View file

@ -387,11 +387,8 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
brw_add_texrect_params(prog);
if (options->NirOptions) {
if (options->NirOptions)
prog->nir = brw_create_nir(brw, shProg, prog, (gl_shader_stage) stage);
ralloc_free(shader->ir);
shader->ir = NULL;
}
_mesa_reference_program(ctx, &prog, NULL);
}