[Mesa-dev] [PATCH 1/3] radv: rename radv_emit_shaders_prefetch() to radv_emit_prefetch()

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Nov 8 11:12:29 UTC 2017


For consistency because this function will also prefetch VBO
descriptors.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 9a191cda1c..7323c53da6 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]);
@@ -3263,8 +3263,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
@@ -3273,8 +3273,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.15.0



More information about the mesa-dev mailing list