[clinfo] 40/55: Fix CL_DEVICE_IMAGE_PITCH_ALIGNMENT unit to pixels.

Andreas Beckmann anbe at moszumanska.debian.org
Sat Jan 13 14:40:02 UTC 2018


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository clinfo.

commit c1a9d4ef1934b9d4bc32c98a30b1c8cf1c121a9c
Author: Ruiling Song <ruiling.song at intel.com>
Date:   Wed Oct 25 18:56:56 2017 +0800

    Fix CL_DEVICE_IMAGE_PITCH_ALIGNMENT unit to pixels.
    
    Per OCL Spec, the row pitch alignment is in units of pixels.
    
    Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
 src/clinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 3e0ea36..bbc697c 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -1867,7 +1867,7 @@ struct device_info_traits dinfo_traits[] = {
 	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_IMAGE_MAX_BUFFER_SIZE, INDENT "Max size for 1D images from buffer", pixels_str, sz), dev_has_images_12 },
 	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_IMAGE_MAX_ARRAY_SIZE, INDENT "Max 1D or 2D image array size", images_str, sz), dev_has_images_12 },
 	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT, INDENT "Base address alignment for 2D image buffers", bytes_str, sz), dev_has_image2d_buffer },
-	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_IMAGE_PITCH_ALIGNMENT, INDENT "Pitch alignment for 2D image buffers", bytes_str, sz), dev_has_image2d_buffer },
+	{ CLINFO_BOTH, DINFO_SFX(CL_DEVICE_IMAGE_PITCH_ALIGNMENT, INDENT "Pitch alignment for 2D image buffers", pixels_str, sz), dev_has_image2d_buffer },
 
 	/* Image dimensions are split for RAW, combined for HUMAN */
 	{ CLINFO_HUMAN, DINFO_SFX(CL_DEVICE_IMAGE2D_MAX_HEIGHT, INDENT "Max 2D image size",  pixels_str, img_sz_2d), dev_has_images },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list