Do not allow default mem_flags
Force mem_flags to be explicit passed in then calling Queue constructor to avoid ambiguity with calls to Queue constructor trying to only pass the agent_node_id. Change-Id: Ib6fedcb9e52d6c9f35f9051dfa989343456ca368 Signed-off-by: David Yat Sin <David.YatSin@amd.com>
This commit is contained in:
@@ -184,7 +184,7 @@ class Queue : public Checked<0xFA3906A679F9DB49>, private LocalQueue {
|
||||
public_handle_ = Convert(this);
|
||||
}
|
||||
|
||||
Queue(int agent_node_id, int mem_flags = 0) : LocalQueue(agent_node_id, mem_flags), amd_queue_(queue()->amd_queue) {
|
||||
Queue(int agent_node_id, int mem_flags) : LocalQueue(agent_node_id, mem_flags), amd_queue_(queue()->amd_queue) {
|
||||
queue()->core_queue = this;
|
||||
public_handle_ = Convert(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user