Mesa (main): radv: move a comment at the right place in CmdBindVertexBuffers2EXT()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 7 15:14:44 UTC 2021


Module: Mesa
Branch: main
Commit: 45f181c4827b2dae2fb01d63153db141cbe43c79
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=45f181c4827b2dae2fb01d63153db141cbe43c79

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Nov 18 11:18:56 2021 +0100

radv: move a comment at the right place in CmdBindVertexBuffers2EXT()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13857>

---

 src/amd/vulkan/radv_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index ccc49a1df8c..d5c988cfb7d 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -4581,7 +4581,6 @@ radv_CmdBindVertexBuffers2EXT(VkCommandBuffer commandBuffer, uint32_t firstBindi
       vb[idx].buffer = buffer;
       vb[idx].offset = pOffsets[i];
       vb[idx].size = size;
-      /* if pStrides=NULL, it shouldn't overwrite the strides specified by CmdSetVertexInputEXT */
 
       if (chip == GFX6 || chip >= GFX10) {
          const uint32_t bit = 1u << idx;
@@ -4602,6 +4601,7 @@ radv_CmdBindVertexBuffers2EXT(VkCommandBuffer commandBuffer, uint32_t firstBindi
          }
       }
 
+      /* if pStrides=NULL, it shouldn't overwrite the strides specified by CmdSetVertexInputEXT */
       if (pStrides)
          vb[idx].stride = stride;
 



More information about the mesa-commit mailing list