Fix Engine Offsetting for Copy on Engine
Forgot SDMA blit engine indices are offset by DevToDev 0-position in a couple of places. Change-Id: Ie811d8281bc812738ed0107694f3dffde5e93685
This commit is contained in:
@@ -511,8 +511,8 @@ hsa_status_t Runtime::CopyMemoryOnEngine(void* dst, core::Agent* dst_agent, cons
|
||||
core::Agent* copy_agent = (src_gpu) ? src_agent : dst_agent;
|
||||
|
||||
// engine_id is single bitset unique.
|
||||
int engine_offset = ffs(engine_id) - 1;
|
||||
if (!engine_id || !!((engine_id >> (engine_offset + 1)))) {
|
||||
int engine_offset = ffs(engine_id);
|
||||
if (!engine_id || !!((engine_id >> engine_offset))) {
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user