winsys/amdgpu: avoid flushed depth when possible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 1 Jul 2016 14:18:34 +0000 (16:18 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jul 2016 08:43:52 +0000 (10:43 +0200)
commit660cd3de4acf5ae8ccef2bc5d367de98d9ac0e27
treeadb8e50959bcec4d5839ebb7183b53105eff8690
parent7000dfd5c36dcfcc493e149e5aa5b4124d814d8a
winsys/amdgpu: avoid flushed depth when possible

If a depth/stencil texture has no mipmaps, we can always get a layout that is
compatible with DB and TC.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c