xgl: Consistent naming scheme for resources in XGL

bug #13230
header revision: r29764 (0.62.0)

Part 1: Change BUFFER_USAGE, BUFFER_VIEW and BUFFER_VIEW_CREATE_INFO.
diff --git a/icd/intel/cmd_meta.c b/icd/intel/cmd_meta.c
index 88b6f28..fb454da 100644
--- a/icd/intel/cmd_meta.c
+++ b/icd/intel/cmd_meta.c
@@ -38,12 +38,12 @@
                                            struct intel_buf_view **view)
 {
     XGL_BUFFER_VIEW_CREATE_INFO info;
+    XGL_GPU_SIZE stride;
 
     memset(&info, 0, sizeof(info));
     info.sType = XGL_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO;
     info.buffer = buf;
     info.viewType = XGL_BUFFER_VIEW_TYPED;
-    info.stride = icd_format_get_size(format);
     info.format = format;
     info.range = range;
 
@@ -51,8 +51,9 @@
      * We do not rely on the hardware to avoid out-of-bound access.  But we do
      * not want the hardware to ignore the last element either.
      */
-    if (info.range % info.stride)
-        info.range += info.stride - (info.range % info.stride);
+    stride = icd_format_get_size(format);
+    if (info.range % stride)
+        info.range += stride - (info.range % stride);
 
     return intel_buf_view_create(cmd->dev, &info, view);
 }