Make sure to zero out all the unset texture fields

These might contain garbage causing the runtime to incorrectly parse the state of the texture references.

Change-Id: I93c726fa30b580b3e14c50ac939f3c71b0d1c8d9


[ROCm/hip commit: 8d6347c6b8]
이 커밋은 다음에 포함됨:
Vlad Sytchenko
2020-04-23 16:38:32 -04:00
부모 618efb83c1
커밋 1c3f7234de
+8
파일 보기
@@ -65,6 +65,10 @@ struct __HIP_TEXTURE_ATTRIB texture : public textureReference {
channelDesc = hipCreateChannelDesc<T>();
sRGB = 0;
textureObject = nullptr;
maxAnisotropy = 0;
mipmapLevelBias = 0;
minMipmapLevelClamp = 0;
maxMipmapLevelClamp = 0;
}
texture(int norm, enum hipTextureFilterMode fMode, enum hipTextureAddressMode aMode,
@@ -78,6 +82,10 @@ struct __HIP_TEXTURE_ATTRIB texture : public textureReference {
channelDesc = desc;
sRGB = 0;
textureObject = nullptr;
maxAnisotropy = 0;
mipmapLevelBias = 0;
minMipmapLevelClamp = 0;
maxMipmapLevelClamp = 0;
}
};