radv: rename radv_emit_shaders_prefetch() to radv_emit_prefetch()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 8 Nov 2017 11:12:29 +0000 (12:12 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Nov 2017 10:03:11 +0000 (11:03 +0100)
For consistency because this function will also prefetch VBO
descriptors.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 98f07e850e9316e03c1740e21bde7e12690ce35f..3bf2d4a8b933c97668c77b51eb573b272224a015 100644 (file)
@@ -679,8 +679,8 @@ radv_emit_shader_prefetch(struct radv_cmd_buffer *cmd_buffer,
 }
 
 static void
-radv_emit_shaders_prefetch(struct radv_cmd_buffer *cmd_buffer,
-                          struct radv_pipeline *pipeline)
+radv_emit_prefetch(struct radv_cmd_buffer *cmd_buffer,
+                  struct radv_pipeline *pipeline)
 {
        radv_emit_shader_prefetch(cmd_buffer,
                                  pipeline->shaders[MESA_SHADER_VERTEX]);
@@ -3250,8 +3250,8 @@ radv_draw(struct radv_cmd_buffer *cmd_buffer,
                 * important.
                 */
                if (pipeline_is_dirty) {
-                       radv_emit_shaders_prefetch(cmd_buffer,
-                                                  cmd_buffer->state.pipeline);
+                       radv_emit_prefetch(cmd_buffer,
+                                          cmd_buffer->state.pipeline);
                }
        } else {
                /* If we don't wait for idle, start prefetches first, then set
@@ -3260,8 +3260,8 @@ radv_draw(struct radv_cmd_buffer *cmd_buffer,
                si_emit_cache_flush(cmd_buffer);
 
                if (pipeline_is_dirty) {
-                       radv_emit_shaders_prefetch(cmd_buffer,
-                                                  cmd_buffer->state.pipeline);
+                       radv_emit_prefetch(cmd_buffer,
+                                          cmd_buffer->state.pipeline);
                }
 
                if (!radv_upload_graphics_shader_descriptors(cmd_buffer, pipeline_is_dirty))