gallium/radeon: add depth/stencil_adjusted output to surface computation
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 30 Jun 2016 18:04:54 +0000 (20:04 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jul 2016 08:43:52 +0000 (10:43 +0200)
commit7000dfd5c36dcfcc493e149e5aa5b4124d814d8a
tree62e7aef18be18f040a822a658564ded19c8bb275
parent68fe270e71cafcaa23825442228f03f269598476
gallium/radeon: add depth/stencil_adjusted output to surface computation

This fixes a rare bug with stencil texturing -- seen on Polaris and Tonga,
though it's basically a function of the memory configuration so could affect
other parts as well.

Fixes piglit "unaligned-blit * stencil downsample" and various
"fbo-depth-array *stencil*" tests.

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