intel: Change buffer stride for uniform buffers
The compiler currently expects different strides for UBO, depending
on stage. Fragment shaders expect stride of 4, while other stages
expect stride of 16. This is difficult to support, but this patch
attempts to change the stride at draw time, based on the stage.
diff --git a/icd/intel/view.c b/icd/intel/view.c
index 5d2f08f..ea4ab19 100644
--- a/icd/intel/view.c
+++ b/icd/intel/view.c
@@ -1073,6 +1073,7 @@
}
view->mem = intel_mem(info->mem);
+ view->info = *info;
if (intel_gpu_gen(dev->gpu) >= INTEL_GEN(7)) {
surface_state_buf_gen7(dev->gpu, info->offset,