[Mesa-dev] [PATCH 1/4] anv: Re-emit vertex buffers when the pipeline changes

Kenneth Graunke kenneth at whitecape.org
Fri Sep 7 20:09:03 UTC 2018


On Tuesday, August 21, 2018 6:57:48 PM PDT Jason Ekstrand wrote:
> Some of the bits of VERTEX_BUFFER_STATE such as access type, instance
> data step rate, and pitch come from the pipeline.
> 
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  src/intel/vulkan/genX_cmd_buffer.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
> index b7ed817d3a0..18f80e8d1bd 100644
> --- a/src/intel/vulkan/genX_cmd_buffer.c
> +++ b/src/intel/vulkan/genX_cmd_buffer.c
> @@ -2493,6 +2493,8 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer)
>     uint32_t *p;
>  
>     uint32_t vb_emit = cmd_buffer->state.gfx.vb_dirty & pipeline->vb_used;
> +   if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_PIPELINE)
> +      vb_emit |= pipeline->vb_used;
>  
>     assert((pipeline->active_stages & VK_SHADER_STAGE_COMPUTE_BIT) == 0);
>  
> 

This patch is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180907/8a84cf43/attachment.sig>


More information about the mesa-dev mailing list