SWDEV-229731 - [Lnx][Rocm][Navi]Support images in full Opencl Conformance tests

1. Enable pitch workaround
2. When we use copy image, we don't need to create the custom pitch image
3. wrtBackImageBuffer_ stores device memory object, not amd image object.

Tests:
conformance kernel read / write test pass with this code change.

Change-Id: I7dca3127adde6ac83e78dd270a2256ebed55c60d
This commit is contained in:
Alex Xie
2020-04-01 18:20:21 -04:00
committed by AlexBin Xie
parent 3e247d2afd
commit 43b9863e17
3 changed files with 18 additions and 13 deletions
+2 -1
View File
@@ -145,8 +145,9 @@ bool Settings::create(bool fullProfile, int gfxipVersion, bool coop_groups) {
if (gfxipVersion >= 1000) {
enableWave32Mode_ = true;
enableWgpMode_ = GPU_ENABLE_WGP_MODE;
if (gfxipVersion == 1001) {
if (gfxipVersion >= 1010) {
// GFX10.1 HW doesn't support custom pitch. Enable double copy workaround
// TODO: This should be updated when ROCr support custom pitch
imageBufferWar_ = GPU_IMAGE_BUFFER_WAR;
}
}