Forums - CL_UNSIGNED_INT8 fails with CL_R

1 post / 0 new
CL_UNSIGNED_INT8 fails with CL_R
hgana
Join Date: 9 Jul 14
Posts: 1
Posted: Thu, 2014-07-24 12:42

I am trying to allocate a image2d type with the following format , 

    imageFormat.image_channel_data_type = CL_UNSIGNED_INT8;
    imageFormat.image_channel_order     = CL_R;       
    image_desc.image_type               = CL_MEM_OBJECT_IMAGE2D;
 
This works in my VS2010 Adreno SDK build , but I get an error -10(Unsupported Image Format) while in run the same cope in the Snapdragon MDP.
 
While 'CL_UNSIGNED_INT16' works with CL_R  , why is that CL_UNSIGNED_INT8 is not supported with CL_R.
 
Since I need to copy a greyscale 8-bit image from Host-Device , this is the only option I could use and relly need a way to fix this.
 
Thank you for helping.
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.