intel: request scratch space from PSO

Let PSO request scratch space via XGL_INFO_TYPE_MEMORY_REQUIREMENTS.
diff --git a/icd/intel/pipeline_shader.c b/icd/intel/pipeline_shader.c
index a97f0b5..0136786 100644
--- a/icd/intel/pipeline_shader.c
+++ b/icd/intel/pipeline_shader.c
@@ -433,6 +433,11 @@
 {
     sh->max_threads =
         intel_gpu_get_max_threads(pipeline->dev->gpu, sh_info->stage);
+
+    /* 1KB aligned */
+    sh->scratch_offset = u_align(pipeline->scratch_size, 1024);
+    pipeline->scratch_size = sh->scratch_offset +
+        sh->per_thread_scratch_size * sh->max_threads;
 }
 
 XGL_RESULT pipeline_build_shaders(struct intel_pipeline *pipeline,