amd/addrlib/gfx10: fix assertion in Addr2IsValidDisplaySwizzleMode
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 28 Jun 2018 18:12:05 +0000 (20:12 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/addrlib/src/addrinterface.cpp

index 81857b213f6a7e6457764e5f813f154927cf65cb..ae5dfa2a898d75b2298fe30f0bb204697bdfaf85 100644 (file)
@@ -1725,6 +1725,7 @@ ADDR_E_RETURNCODE ADDR_API Addr2IsValidDisplaySwizzleMode(
     if (pLib != NULL)
     {
         ADDR2_COMPUTE_SURFACE_INFO_INPUT in;
+        in.resourceType = ADDR_RSRC_TEX_2D;
         in.swizzleMode = swizzleMode;
         in.bpp = bpp;