compiler: enable SSO for standalone shader compile and link
diff --git a/icd/intel/compiler/shader/main.cpp b/icd/intel/compiler/shader/main.cpp
index 58f1140..8076dac 100644
--- a/icd/intel/compiler/shader/main.cpp
+++ b/icd/intel/compiler/shader/main.cpp
@@ -432,6 +432,12 @@
}
if ((status == EXIT_SUCCESS) && do_link) {
+ assert(whole_program->NumShaders == 1);
+
+ // for XGL, we are independently compiling and linking individual
+ // shaders, which matches this frontend's concept of SSO
+ whole_program->SeparateShader = true;
+
link_shaders(ctx, whole_program);
status = (whole_program->LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE;