From 36c2e46328287b9ad0211e11117f5e65198d8d2f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 8 Nov 2017 12:12:29 +0100 Subject: [PATCH] radv: rename radv_emit_shaders_prefetch() to radv_emit_prefetch() For consistency because this function will also prefetch VBO descriptors. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 98f07e850e9..3bf2d4a8b93 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -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)) -- 2.30.2