-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL][ESIMD][EMU] Merging buffer/image info to surface info #5930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL][ESIMD][EMU] Merging buffer/image info to surface info #5930
Conversation
PiBuf->SurfacePtr.UPBufPtr); | ||
} else if (Mem->SurfacePtr.tag == cm_surface_ptr_t::type_regular_buffer) { | ||
_pi_buffer *PiBuf = static_cast<_pi_buffer *>(Mem); | ||
Status = Mem->Context->Device->CmDevicePtr->DestroySurface( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this functionality be encapsulated in destrutor of _pi_mem ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -105,9 +107,28 @@ struct _pi_queue : _pi_object { | |||
cm_support::CmQueue *CmQueuePtr = nullptr; | |||
}; | |||
|
|||
struct _pi_mem : _pi_object { | |||
_pi_mem() = default; | |||
struct cm_surface_ptr_t { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add later comments what is this structure for.
This PR is to merge cm buffer info and cm image info into one surface_info struct. Suggested in #5606.
Comment : https://github.com/intel/llvm/pull/5606/files#r831642498, https://github.com/intel/llvm/pull/5606/files#r836308878