Add image view allocation

If deferred allocation is disabled, then make sure the image view
is created without a delay. Also reset the allocation state, since
create() method isn't called for a view creation.

Change-Id: I7aa22a62bff18289ade83e56b5d3305ba68c715b
This commit is contained in:
German Andryeyev
2020-10-30 12:10:05 -04:00
parent ec22c54d85
commit 089a5cc4ad
2 changed files with 23 additions and 3 deletions
+2
View File
@@ -215,6 +215,8 @@ class Memory : public amd::RuntimeObject {
void setSize(size_t size) { size_ = size; }
void setInteropObj(InteropObject* obj) { interopObj_ = obj; }
void resetAllocationState();
public:
//! Placement new operator.
void* operator new(size_t size, //!< Original allocation size