intel: pass XGL_PIPELINE_SHADER to intel_pipeline_shader_compile()

We will need more than intel_ir, which is a part of XGL_PIPELINE_SHADER.
diff --git a/icd/intel/compiler/pipeline/pipeline_compiler_interface.cpp b/icd/intel/compiler/pipeline/pipeline_compiler_interface.cpp
index 1d40afa..2c94492 100644
--- a/icd/intel/compiler/pipeline/pipeline_compiler_interface.cpp
+++ b/icd/intel/compiler/pipeline/pipeline_compiler_interface.cpp
@@ -281,8 +281,9 @@
 // invoke backend compiler to generate ISA and supporting data structures
 XGL_RESULT intel_pipeline_shader_compile(struct intel_pipeline_shader *pipe_shader,
                                          const struct intel_gpu *gpu,
-                                         const struct intel_ir *ir)
+                                         const XGL_PIPELINE_SHADER *info)
 {
+    const struct intel_ir *ir = intel_shader(info->shader)->ir;
     /* XXX how about constness? */
     struct gl_shader_program *sh_prog = (struct gl_shader_program *) ir;
     XGL_RESULT status = XGL_SUCCESS;
diff --git a/icd/intel/compiler/pipeline/pipeline_compiler_interface.h b/icd/intel/compiler/pipeline/pipeline_compiler_interface.h
index 05e57b4..a0128f1 100644
--- a/icd/intel/compiler/pipeline/pipeline_compiler_interface.h
+++ b/icd/intel/compiler/pipeline/pipeline_compiler_interface.h
@@ -45,7 +45,7 @@
 
 XGL_RESULT intel_pipeline_shader_compile(struct intel_pipeline_shader *ips,
                                          const struct intel_gpu *gpu,
-                                         const struct intel_ir *ir);
+                                         const XGL_PIPELINE_SHADER *info);
 
 XGL_RESULT intel_pipeline_shader_compile_meta(struct intel_pipeline_shader *sh,
                                               const struct intel_gpu *gpu,
diff --git a/icd/intel/pipeline_shader.c b/icd/intel/pipeline_shader.c
index 0136786..6ce7910 100644
--- a/icd/intel/pipeline_shader.c
+++ b/icd/intel/pipeline_shader.c
@@ -279,8 +279,7 @@
 
     // Right here, lower the IR to ISA using NOS
     // This must be after assignment of pipeline constant buffer
-    ret = intel_pipeline_shader_compile(vs, pipeline->dev->gpu,
-            intel_shader(info->vs.shader)->ir);
+    ret = intel_pipeline_shader_compile(vs, pipeline->dev->gpu, &info->vs);
     if (ret != XGL_SUCCESS)
         return ret;
 
@@ -307,8 +306,7 @@
     struct intel_pipeline_shader *tcs = &pipeline->tcs;
     XGL_RESULT ret;
 
-    ret = intel_pipeline_shader_compile(tcs, pipeline->dev->gpu,
-            intel_shader(info->tcs.shader)->ir);
+    ret = intel_pipeline_shader_compile(tcs, pipeline->dev->gpu, &info->tcs);
     if (ret != XGL_SUCCESS)
         return ret;
 
@@ -325,8 +323,7 @@
     struct intel_pipeline_shader *tes = &pipeline->tes;
     XGL_RESULT ret;
 
-    ret = intel_pipeline_shader_compile(tes, pipeline->dev->gpu,
-            intel_shader(info->tes.shader)->ir);
+    ret = intel_pipeline_shader_compile(tes, pipeline->dev->gpu, &info->tes);
     if (ret != XGL_SUCCESS)
         return ret;
 
@@ -343,8 +340,7 @@
     struct intel_pipeline_shader *gs = &pipeline->gs;
     XGL_RESULT ret;
 
-    ret = intel_pipeline_shader_compile(gs, pipeline->dev->gpu,
-            intel_shader(info->gs.shader)->ir);
+    ret = intel_pipeline_shader_compile(gs, pipeline->dev->gpu, &info->gs);
     if (ret != XGL_SUCCESS)
         return ret;
 
@@ -387,8 +383,7 @@
 
     // Right here, lower the IR to ISA using NOS
     // This must be after assignment of pipeline constant buffer
-    ret = intel_pipeline_shader_compile(fs, pipeline->dev->gpu,
-            intel_shader(info->fs.shader)->ir);
+    ret = intel_pipeline_shader_compile(fs, pipeline->dev->gpu, &info->fs);
     if (ret != XGL_SUCCESS)
         return ret;
 
@@ -415,8 +410,7 @@
     struct intel_pipeline_shader *cs = &pipeline->cs;
     XGL_RESULT ret;
 
-    ret = intel_pipeline_shader_compile(cs, pipeline->dev->gpu,
-            intel_shader(info->compute.cs.shader)->ir);
+    ret = intel_pipeline_shader_compile(cs, pipeline->dev->gpu, &info->compute.cs);
     if (ret != XGL_SUCCESS)
         return ret;