P4 to Git Change 1968527 by gandryey@gera-win10 on 2019/07/16 14:52:45
SWDEV-195023 - [CQE OCL][Navi10][RESOLVE] corruption seen in thumbnail for mxf clip after enabling temporal denoiser in Davinci resolve app - Add a workaround for missing custom pitch in gfx10 HW. It can be disabled with GPU_IMAGE_BUFFER_WAR=0. Workaround implements double copy with an image without pitch. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#26 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.hpp#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#89 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#24 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#138 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#62 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#313 edit
This commit is contained in:
@@ -144,6 +144,7 @@ Settings::Settings() {
|
||||
hsailExplicitXnack_ = false;
|
||||
lcWavefrontSize64_ = true;
|
||||
enableHwP2P_ = false;
|
||||
imageBufferWar_ = false;
|
||||
}
|
||||
|
||||
bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
@@ -331,6 +332,11 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (gfx10Plus_) {
|
||||
// GFX10 HW doesn't support custom pitch. Enable double copy workaround
|
||||
imageBufferWar_ = GPU_IMAGE_BUFFER_WAR;
|
||||
}
|
||||
|
||||
splitSizeForWin7_ = false;
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user