SWDEV-506251 - Disable blit copy thresold for OpenCL

Change-Id: Id0ca43b13d5792791a42da263f6aa4496382cea6


[ROCm/clr commit: 39801b5750]
Этот коммит содержится в:
Saleel Kudchadker
2025-01-07 18:25:44 +00:00
родитель b1ef5972d6
Коммит d4594531ef
2 изменённых файлов: 8 добавлений и 3 удалений
+7 -2
Просмотреть файл
@@ -1092,9 +1092,14 @@ Settings::Settings() : value_(0) {
waitCommand_ = AMD_OCL_WAIT_COMMAND;
supportDepthsRGB_ = false;
fenceScopeAgent_ = AMD_OPT_FLUSH;
if (amd::IS_HIP) {
// Amend certain flags for OpenCL
if (!amd::IS_HIP) {
if (flagIsDefault(GPU_SINGLE_ALLOC_PERCENT)) {
GPU_SINGLE_ALLOC_PERCENT = 100;
GPU_SINGLE_ALLOC_PERCENT = 85;
}
if (flagIsDefault(GPU_FORCE_BLIT_COPY_SIZE)) {
GPU_FORCE_BLIT_COPY_SIZE = 0;
}
}
+1 -1
Просмотреть файл
@@ -92,7 +92,7 @@ release(size_t, GPU_XFER_BUFFER_SIZE, 0, \
"Transfer buffer size for image copy optimization in KB") \
release(bool, GPU_IMAGE_DMA, true, \
"Enable DRM DMA for image transfers") \
release(uint, GPU_SINGLE_ALLOC_PERCENT, 85, \
release(uint, GPU_SINGLE_ALLOC_PERCENT, 100, \
"Maximum size of a single allocation as percentage of total") \
release(uint, GPU_NUM_COMPUTE_RINGS, 2, \
"GPU number of compute rings. 0 - disabled, 1 , 2,.. - the number of compute rings") \