[Mesa-dev] [PATCH 14/18] anv/cmd_buffer: Enable render pass awareness

Jason Ekstrand jason at jlekstrand.net
Tue Feb 28 05:23:21 UTC 2017


Thank you!  I've been meaning to do this.  That said, I think we need
something in cmd_state_reset as well.

On Feb 27, 2017 5:22 PM, "Nanley Chery" <nanleychery at gmail.com> wrote:

> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  src/intel/vulkan/genX_cmd_buffer.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/intel/vulkan/genX_cmd_buffer.c
> b/src/intel/vulkan/genX_cmd_buffer.c
> index 1c31082136..b5eda3a13d 100644
> --- a/src/intel/vulkan/genX_cmd_buffer.c
> +++ b/src/intel/vulkan/genX_cmd_buffer.c
> @@ -2438,4 +2438,11 @@ void genX(CmdEndRenderPass)(
>  #ifndef NDEBUG
>     anv_dump_add_framebuffer(cmd_buffer, cmd_buffer->state.framebuffer);
>  #endif
> +
> +   /* Remove references to render pass specific state. This enables us to
> +    * detect whether or not we're in a renderpass.
> +    */
> +   cmd_buffer->state.framebuffer = NULL;
> +   cmd_buffer->state.pass = NULL;
> +   cmd_buffer->state.subpass = NULL;
>  }
> --
> 2.11.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170227/906b90bf/attachment.html>


More information about the mesa-dev mailing list