i965: use gl_shader_program_data::spirv
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 13 Apr 2018 14:44:23 +0000 (16:44 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Jun 2018 12:25:05 +0000 (14:25 +0200)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_program.c

index 446aaee0673624b63dd0461c52dd9dcd417e4f4a..959c6122f57953383e2be584ec47e69ecb124aa9 100644 (file)
@@ -77,7 +77,7 @@ brw_create_nir(struct brw_context *brw,
 
    /* First, lower the GLSL/Mesa IR or SPIR-V to NIR */
    if (shader_prog) {
-      if (shader_prog->_LinkedShaders[stage]->spirv_data)
+      if (shader_prog->data->spirv)
          nir = _mesa_spirv_to_nir(ctx, shader_prog, stage, options);
       else
          nir = glsl_to_nir(shader_prog, stage, options);