ac/surface: don't print stencil info if tex has no stencil
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 25 Jun 2021 11:58:14 +0000 (13:58 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 29 Jun 2021 21:38:21 +0000 (23:38 +0200)
commitc564841fae9ec42006b03ea5793b09e1dde9cc23
treed4e24e7393436c7e8fe7eb77d108bce0c8f17654
parent822f37773687a4753a2dff8eba1173d57eb0ce18
ac/surface: don't print stencil info if tex has no stencil

color/zs are stored in a union so testing for zs.stencil_offset
isn't the correct way to test for stencil.

Fixes: 988f148db3c ("ac/surface: overlap color and Z/S fields using a union in gfx9_surf_layout")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11625>
src/amd/common/ac_surface.c