SWDEV-409815 - Fix image view cache issue
Make sure parent_ field is cleared for the internal image views.
The internal image views don't require dependencies tracking.
The issue appeard only when Navi10 pitch workaround was enabled.
Change-Id: I376d212750085a9391f8c32fc2979dcb5d93c89c
[ROCm/clr commit: 6b89980fb2]
이 커밋은 다음에 포함됨:
1 부모
a7418845f8
커밋
116c9fd6c1
2 파일이 변경됨
+2
검색과 일치하는 파일 없음
@@ -1497,6 +1497,7 @@ bool Image::AddView(amd::Image* image) {
|
||||
view_cache_.push_back(image);
|
||||
// Remove parent dependency on the child, since cache will be destroyed within the parent
|
||||
owner()->release();
|
||||
image->SetParent(nullptr);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -323,6 +323,7 @@ class Memory : public amd::RuntimeObject {
|
||||
|
||||
// Accessors
|
||||
Memory* parent() const { return parent_; }
|
||||
void SetParent(amd::Memory* parent) { parent_ = parent; }
|
||||
bool isParent() const { return isParent_; }
|
||||
|
||||
size_t getOrigin() const { return origin_; }
|
||||
|
||||
새 이슈에서 참조
사용자 차단