From 9eb4a79345639b5e4949ffa628ddc9111c719495 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 28 Jun 2018 20:12:05 +0200 Subject: [PATCH] amd/addrlib/gfx10: fix assertion in Addr2IsValidDisplaySwizzleMode Acked-by: Bas Nieuwenhuizen --- src/amd/addrlib/src/addrinterface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/addrlib/src/addrinterface.cpp b/src/amd/addrlib/src/addrinterface.cpp index 81857b213f6..ae5dfa2a898 100644 --- a/src/amd/addrlib/src/addrinterface.cpp +++ b/src/amd/addrlib/src/addrinterface.cpp @@ -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; -- 2.30.2