radv: don't overallocate depth/stencil formats
authorDave Airlie <airlied@redhat.com>
Thu, 6 Jul 2017 06:23:25 +0000 (07:23 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Jul 2017 22:23:22 +0000 (23:23 +0100)
commit8950fac6abacd8b2ca1ae1376ac72b48400816cf
tree2bec9313ab73898e443f7360f4a3e3816a595f88
parent09d7c7be4f1750a24670f8e7f9c555d88e47708f
radv: don't overallocate depth/stencil formats

For depth/stencil formats the surface layer allocates the
stencil separately, so we don't need to include it in the
bpe.

This reduces the side of d32s8 allocates to something closer to pro.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c