diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-08 12:12:29 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-13 11:03:11 +0100 |
commit | 36c2e46328287b9ad0211e11117f5e65198d8d2f (patch) | |
tree | 6dc8791ac59943e0d92d3eb5da1449175b33d90e /src | |
parent | 456e10944fca0c5af7abcccd0cd901dc7e833b21 (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 12 |
1 files 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)) |