[Mesa-dev] [PATCH 09/22] anv/cmd_buffer: Don't partially fast-clear image layers

Nanley Chery nanleychery at gmail.com
Tue May 2 23:37:27 UTC 2017


On Tue, May 02, 2017 at 04:25:42PM -0700, Jason Ekstrand wrote:
> On Thu, Apr 27, 2017 at 11:32 AM, 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 | 18 +++++++++++++++---
> >  1 file changed, 15 insertions(+), 3 deletions(-)
> >
> > diff --git a/src/intel/vulkan/genX_cmd_buffer.c
> > b/src/intel/vulkan/genX_cmd_buffer.c
> > index 0ea378fde2..a981b00f67 100644
> > --- a/src/intel/vulkan/genX_cmd_buffer.c
> > +++ b/src/intel/vulkan/genX_cmd_buffer.c
> > @@ -216,7 +216,7 @@ color_is_zero_one(VkClearColorValue value, enum
> > isl_format format)
> >  }
> >
> >  static void
> > -color_attachment_compute_aux_usage(struct anv_device *device,
> > +color_attachment_compute_aux_usage(struct anv_cmd_buffer * const
> > cmd_buffer,
> >
> 
> I t may be better to just pass in the framebuffer and attachment index
> rather than the whole command buffer.  Slso, I think you're getting a bit
> over-excited with the constness. :-)
> 
> 

The command buffer is used to look up the render pass in the next patch.
If you'd like me to pass in the render pass and framebuffer I could do
that alternatively.

At one point I considered creating a keyboard shortcut to make typing
'const' easier :). I'm open to hearing your thoughts about our use of it
though.


More information about the mesa-dev mailing list