radv: rename some parameters in Cmd{Begin,End}TransformFeedbackEXT()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 30 Oct 2018 09:09:39 +0000 (10:09 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 Oct 2018 08:21:28 +0000 (09:21 +0100)
To match latest spec.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 63a1fd6dff325a3f656048a85199ccfc7ff7ee55..c43e12f6d621d280caaf653c08ed693c43c9a951 100644 (file)
@@ -4732,8 +4732,8 @@ static void radv_flush_vgt_streamout(struct radv_cmd_buffer *cmd_buffer)
 
 void radv_CmdBeginTransformFeedbackEXT(
     VkCommandBuffer                             commandBuffer,
-    uint32_t                                    firstBuffer,
-    uint32_t                                    bufferCount,
+    uint32_t                                    firstCounterBuffer,
+    uint32_t                                    counterBufferCount,
     const VkBuffer*                             pCounterBuffers,
     const VkDeviceSize*                         pCounterBufferOffsets)
 {
@@ -4744,8 +4744,8 @@ void radv_CmdBeginTransformFeedbackEXT(
 
        radv_flush_vgt_streamout(cmd_buffer);
 
-       assert(firstBuffer + bufferCount <= MAX_SO_BUFFERS);
-       for (uint32_t i = firstBuffer; i < bufferCount; i++) {
+       assert(firstCounterBuffer + counterBufferCount <= MAX_SO_BUFFERS);
+       for (uint32_t i = firstCounterBuffer; i < counterBufferCount; i++) {
                if (!(so->enabled_mask & (1 << i)))
                        continue;
 
@@ -4793,8 +4793,8 @@ void radv_CmdBeginTransformFeedbackEXT(
 
 void radv_CmdEndTransformFeedbackEXT(
     VkCommandBuffer                             commandBuffer,
-    uint32_t                                    firstBuffer,
-    uint32_t                                    bufferCount,
+    uint32_t                                    firstCounterBuffer,
+    uint32_t                                    counterBufferCount,
     const VkBuffer*                             pCounterBuffers,
     const VkDeviceSize*                         pCounterBufferOffsets)
 {
@@ -4804,8 +4804,8 @@ void radv_CmdEndTransformFeedbackEXT(
 
        radv_flush_vgt_streamout(cmd_buffer);
 
-       assert(firstBuffer + bufferCount <= MAX_SO_BUFFERS);
-       for (uint32_t i = firstBuffer; i < bufferCount; i++) {
+       assert(firstCounterBuffer + counterBufferCount <= MAX_SO_BUFFERS);
+       for (uint32_t i = firstCounterBuffer; i < counterBufferCount; i++) {
                if (!(so->enabled_mask & (1 << i)))
                        continue;