summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2018-06-28 20:12:05 +0200
committerMarek Olšák <[email protected]>2019-07-03 15:51:12 -0400
commit9eb4a79345639b5e4949ffa628ddc9111c719495 (patch)
tree9b3c812e8a149d9d175550775d808c2416a5b495 /src/amd
parent6d416ac7e18898716b3b14dae41be81fd3d45896 (diff)
amd/addrlib/gfx10: fix assertion in Addr2IsValidDisplaySwizzleMode
Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/addrlib/src/addrinterface.cpp1
1 files changed, 1 insertions, 0 deletions
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;