[Mesa-dev] [PATCH 02/10] radv: pass pipeline to constant flush function
Dave Airlie
airlied at gmail.com
Mon Nov 28 04:19:34 UTC 2016
From: Dave Airlie <airlied at redhat.com>
I'll need this later rather than just the layout.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/vulkan/radv_cmd_buffer.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 7b9fed2..16a30af0 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -896,8 +896,10 @@ radv_cmd_buffer_flush_dynamic_state(struct radv_cmd_buffer *cmd_buffer)
static void
radv_flush_constants(struct radv_cmd_buffer *cmd_buffer,
- struct radv_pipeline_layout *layout,
- VkShaderStageFlags stages) {
+ struct radv_pipeline *pipeline,
+ VkShaderStageFlags stages)
+{
+ struct radv_pipeline_layout *layout = pipeline->layout;
unsigned offset;
void *ptr;
uint64_t va;
@@ -1026,7 +1028,7 @@ radv_cmd_buffer_flush_state(struct radv_cmd_buffer *cmd_buffer)
radv_cmd_buffer_flush_dynamic_state(cmd_buffer);
- radv_flush_constants(cmd_buffer, cmd_buffer->state.pipeline->layout,
+ radv_flush_constants(cmd_buffer, cmd_buffer->state.pipeline,
VK_SHADER_STAGE_ALL_GRAPHICS);
assert(cmd_buffer->cs->cdw <= cdw_max);
@@ -2005,7 +2007,7 @@ static void
radv_flush_compute_pipeline(struct radv_cmd_buffer *cmd_buffer)
{
radv_emit_compute_pipeline(cmd_buffer);
- radv_flush_constants(cmd_buffer, cmd_buffer->state.compute_pipeline->layout,
+ radv_flush_constants(cmd_buffer, cmd_buffer->state.compute_pipeline,
VK_SHADER_STAGE_COMPUTE_BIT);
si_emit_cache_flush(cmd_buffer);
}
--
2.9.3
More information about the mesa-dev
mailing list