clean unused variables (#2446)

Do not remove calls to `sample_image_pixel_float_offset` as it is using
the `verbose` mode.
This commit is contained in:
Romaric Jodin
2025-07-16 01:36:49 +02:00
committed by GitHub
parent 2fdefbdf34
commit d918b41657
2 changed files with 49 additions and 56 deletions

View File

@@ -945,7 +945,7 @@ int validate_image_2D_sRGB_results(void *imageValues, void *resultValues, double
// Validate float results
float *resultPtr = (float *)(char *)resultValues;
float expected[4], error=0.0f;
float maxErr = get_max_relative_error( imageInfo->format, imageSampler, 0 /*not 3D*/, CL_FILTER_LINEAR == imageSampler->filter_mode );
for( size_t y = 0, j = 0; y < height_lod; y++ )
{
for( size_t x = 0; x < width_lod; x++, j++ )