[Beignet] [PATCH 0/2] utests: Box blur bugfix + box blur on image buffer (exposing sampler bug)
Dag Lem
dag at nimrod.no
Sat May 25 01:14:15 PDT 2013
I have fixed a bug in kernels/compiler_box_blur.cl, and added a test
for box blur on an image buffer.
The image buffer box blur test currently fails, since there are
artifacts on the left and bottom of the output image.
Looking at the output image it may seem like CLK_ADDRESS_CLAMP_TO_EDGE
does not clamp to edge for negative coordinates (remember that BMP
images are stored bottom to top), but rather wraps around to the
opposite edge of the image.
Dag Lem (2):
utests: Correct box blur
utests: Add test case for box blur on image buffer
kernels/compiler_box_blur.cl | 51 +++++++-----------------------------
kernels/compiler_box_blur_image.cl | 18 +++++++++++++
kernels/compiler_box_blur_ref.bmp | Bin 49206 -> 49206 bytes
utests/CMakeLists.txt | 1 +
utests/compiler_box_blur_image.cpp | 52 +++++++++++++++++++++++++++++++++++++
utests/utest_helper.hpp | 6 +++++
6 files changed, 86 insertions(+), 42 deletions(-)
create mode 100644 kernels/compiler_box_blur_image.cl
create mode 100644 utests/compiler_box_blur_image.cpp
--
1.8.1.4
More information about the Beignet
mailing list