[Mesa-dev] [PATCH 16/22] anv/image: Disable HiZ for storage images

Jason Ekstrand jason at jlekstrand.net
Thu Jan 12 04:17:48 UTC 2017


On Wed, Jan 11, 2017 at 5:55 PM, Nanley Chery <nanleychery at gmail.com> wrote:

> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  src/intel/vulkan/anv_image.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
> index f8a21c2982..7d5beeabbe 100644
> --- a/src/intel/vulkan/anv_image.c
> +++ b/src/intel/vulkan/anv_image.c
> @@ -190,6 +190,12 @@ make_surface(const struct anv_device *dev,
>            * input attachments.
>            */
>           anv_finishme("Implement HiZ for input attachments");
> +      } else if (image->usage & VK_IMAGE_USAGE_STORAGE_BIT) {
> +         /* Storage images must be in the VK_IMAGE_LAYOUT_GENERAL layout
> for
> +          * load and store operations. For the same reasons as above,
> disable
> +          * HiZ for now.
>

I don't think you can have depth storage images.


> +          */
> +         anv_finishme("Implement HiZ for storage images");
>        } else if (!env_var_as_boolean("INTEL_VK_HIZ", dev->info.gen >=
> 8)) {
>           anv_finishme("Implement gen7 HiZ");
>        } else if (vk_info->mipLevels > 1) {
> --
> 2.11.0
>
> _______________________________________________
> 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/20170111/deb38855/attachment.html>


More information about the mesa-dev mailing list