Skip to content

Conversation

@dongkyunahn-intel
Copy link
Contributor

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

@dongkyunahn-intel dongkyunahn-intel requested a review from a team as a code owner March 30, 2022 21:38
@dongkyunahn-intel dongkyunahn-intel requested review from lsatanov and steffenlarsen and removed request for steffenlarsen March 30, 2022 21:38
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(
Copy link
Contributor

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


struct _pi_mem : _pi_object {
_pi_mem() = default;
struct cm_surface_ptr_t {
Copy link
Contributor

@kbobrovs kbobrovs Apr 28, 2022

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.

@kbobrovs kbobrovs merged commit b1b4e68 into intel:sycl May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants