Skip to content
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

Deduplicate create_image from Copy/Fill image tests #2262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MichaelRizkalla-arm
Copy link
Contributor

  1. Remove duplicate create_image code that is in both clFillImage and clCopyImage test directories.
  2. Unify how pitch buffer's memory is deallocated; The buffer can be allocated with either malloc or align_malloc and the free function is pre-set in pitch_buffe_data's member variable free_fn and used when the buffer is deallocated. With this, the change removes is_aligned conditional variable that was used to select the appropriate free function.

1. Remove duplicate `create_image` code that is shared between
   clFillImage and clCopyImage test directories.
2. Unify how pitch buffer's memory is deallocated; The buffer can be
   allocated with either `malloc` or `align_malloc` and the free
   function is pre-set in `pitch_buffe_data`'s member variable `free_fn`
   and used when the buffer is deallocated. With this, the change
   removes `is_aligned` conditional variable that was used to select the
   appropriate free function.

Signed-off-by: Michael Rizkalla <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Feb 10, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants