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

Nanley Chery nanleychery at gmail.com
Tue Feb 28 17:11:49 UTC 2017


On Mon, Feb 27, 2017 at 09:23:21PM -0800, Jason Ekstrand wrote:
> Thank you!  I've been meaning to do this.  That said, I think we need
> something in cmd_state_reset as well.
> 

I'm glad you also find this useful. Good point about cmd_state_reset.
I'll fix this in v2.

-Nanley

> 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
> >


More information about the mesa-dev mailing list