vulkan: Consistent naming scheme for resources in XGL
Bug 13230
header: 0.78.0
includes review feedback.
v2: replace VK_FORMAT_IMAGE_COPY_BIT by VK_FORMAT_COLOR_ATTACHMENT_BIT for now
(olv)
diff --git a/icd/intel/buf.c b/icd/intel/buf.c
index b670b7c..291e298 100644
--- a/icd/intel/buf.c
+++ b/icd/intel/buf.c
@@ -60,8 +60,10 @@
* bytes added beyond that to account for the L1 cache line."
*/
mem_req->size = buf->size;
- if (buf->usage & VK_BUFFER_USAGE_SHADER_ACCESS_READ_BIT)
+ if (buf->usage & (VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT |
+ VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT)) {
mem_req->size = u_align(mem_req->size, 256) + 16;
+ }
mem_req->alignment = 4096;
mem_req->memType = VK_MEMORY_TYPE_BUFFER;