anv: Avoid corrupting indirect depth clear values
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 7 Apr 2021 21:05:21 +0000 (14:05 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 21:00:41 +0000 (21:00 +0000)
commitbe2d9c113b070c7783f106821d0ad558898b7d4b
tree0be3287ccd6b9ecb9d2c20733ce9dd69ea7f5611
parentca01d68fb314507e513c6dada255a750e3774588
anv: Avoid corrupting indirect depth clear values

We don't need to initialize the BO since blorp updates the clear color
BO content with fast clear value i.e ANV_HZ_FC_VAL for depth surface.

With this approach, we can get rid of possibility of corruption since we
are no longer sharing the same clear BO for depth formats.

Closes: #3614

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9941>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h