Module: Mesa Branch: master Commit: 9648bfba5641ae8609a9638b3fa888d59b27e006 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9648bfba5641ae8609a9638b3fa888d59b27e006
Author: Juan A. Suarez Romero <[email protected]> Date: Fri Oct 16 11:35:05 2020 +0200 v3dv: mark the right bit to swap R/B vertex attributes Now that the R/B swap mask for vertex attributes handles all the attributes, ensure the right generic vertex attribute is marked. Signed-off-by: Juan A. Suarez Romero <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7196> --- src/broadcom/vulkan/v3dv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_pipeline.c b/src/broadcom/vulkan/v3dv_pipeline.c index 14e46291374..27b98aca03b 100644 --- a/src/broadcom/vulkan/v3dv_pipeline.c +++ b/src/broadcom/vulkan/v3dv_pipeline.c @@ -1263,7 +1263,7 @@ pipeline_populate_v3d_vs_key(struct v3d_vs_key *key, &vi_info->pVertexAttributeDescriptions[i]; assert(desc->location < MAX_VERTEX_ATTRIBS); if (desc->format == VK_FORMAT_B8G8R8A8_UNORM) - key->va_swap_rb_mask |= 1 << desc->location; + key->va_swap_rb_mask |= 1 << (VERT_ATTRIB_GENERIC0 + desc->location); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
