Mesa (master): anv/pipeline: do not use BITFIELD64_BIT()
Juan Antonio Suárez Romero
jasuarez at kemper.freedesktop.org
Fri Jul 14 10:34:09 UTC 2017
Module: Mesa
Branch: master
Commit: 5cd4ece34ebdc1383f1e2376c88097d06544e2f6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cd4ece34ebdc1383f1e2376c88097d06544e2f6
Author: Juan A. Suarez Romero <jasuarez at igalia.com>
Date: Fri Jul 14 10:31:38 2017 +0000
anv/pipeline: do not use BITFIELD64_BIT()
In the previous commit, forgot to apply v2 suggestions.
Fixes: 28d0c38 (anv/pipeline: use unsigned long long constant to check
enable vertex inputs)
Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
---
src/intel/vulkan/anv_pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index edbe2e7a7a..047f90ce08 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -1330,7 +1330,7 @@ anv_pipeline_init(struct anv_pipeline *pipeline,
const VkVertexInputAttributeDescription *desc =
&vi_info->pVertexAttributeDescriptions[i];
- if (inputs_read & BITFIELD64_BIT(VERT_ATTRIB_GENERIC0 + desc->location))
+ if (inputs_read & (1ull << (VERT_ATTRIB_GENERIC0 + desc->location)))
pipeline->vb_used |= 1 << desc->binding;
}
More information about the mesa-commit
mailing list