anv/pipeline: do not use BITFIELD64_BIT()
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 14 Jul 2017 10:31:38 +0000 (10:31 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 14 Jul 2017 10:33:19 +0000 (10:33 +0000)
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@igalia.com>
src/intel/vulkan/anv_pipeline.c

index edbe2e7a7acf00c29e65d4eba409c028df8d366f..047f90ce08a182d472f96ed806eb5cbcdb342799 100644 (file)
@@ -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;
    }