Deduplicate logging of pixel differences (#1175)

clCopyImage and clFillImage contain near-duplicate code for logging of
pixel difference errors.  Move this into imageHelpers.

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
Stuart Brady
2021-03-09 09:09:52 +00:00
committed by GitHub
parent 17632c9736
commit 6f2cd12a0b
4 changed files with 83 additions and 91 deletions

View File

@@ -134,6 +134,11 @@ typedef struct
float p[4];
} FloatPixel;
void print_first_pixel_difference_error(size_t where, const char *sourcePixel,
const char *destPixel,
image_descriptor *imageInfo, size_t y,
size_t thirdDim);
void get_max_sizes(size_t *numberOfSizes, const int maxNumberOfSizes,
size_t sizes[][3], size_t maxWidth, size_t maxHeight,
size_t maxDepth, size_t maxArraySize,