intel: Add command buffer shader cache
The command buffer shader cache accumulates all the shader kernels
for a particular command buffer. It also checks that it includes a
shader only once.
diff --git a/icd/intel/shader.c b/icd/intel/shader.c
index 56ffd9a..7ce891a 100644
--- a/icd/intel/shader.c
+++ b/icd/intel/shader.c
@@ -69,11 +69,7 @@
shader->dev = dev;
- /*
- * shaders have to be aligned to 64byte boundaries for both starting
- * offset (done when copying to a BO) and size.
- */
- shader->codeSize = u_align(pCreateInfo->codeSize, 64);
+ shader->codeSize = pCreateInfo->codeSize;
shader->pCode = icd_alloc(pCreateInfo->codeSize, 4, XGL_SYSTEM_ALLOC_INTERNAL_SHADER);
if (shader->pCode == NULL) {