From: Nicolai Hähnle Date: Thu, 28 Jun 2018 18:12:05 +0000 (+0200) Subject: amd/addrlib/gfx10: fix assertion in Addr2IsValidDisplaySwizzleMode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9eb4a79345639b5e4949ffa628ddc9111c719495;p=mesa.git amd/addrlib/gfx10: fix assertion in Addr2IsValidDisplaySwizzleMode Acked-by: Bas Nieuwenhuizen --- 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;