<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mali G57  image object created from buffer through svm failed</title><link>https://community.arm.com/developer/tools-software/graphics/f/discussions/47982/mali-g57-image-object-created-from-buffer-through-svm-failed</link><description> cl_image_format imageFormat; 
 imageFormat.image_channel_data_type = CL_UNSIGNED_INT16; 
 imageFormat.image_channel_order = CL_RGBA; // considering image with only single channel 
 // Allocate SVM memory 
 size_t imageSize = width * height * sizeof(cl_uchar</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Mali G57  image object created from buffer through svm failed</title><link>https://community.arm.com/thread/168484?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 01:36:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:49641665-86aa-40b1-ba00-0271892e826e</guid><dc:creator>Mr jiao</dc:creator><description>&lt;p&gt;anyway, thanks. first, this should be&amp;nbsp;&lt;span&gt;size_t imageSize = width * height * sizeof(cl_ushort), I write wrong. I try setting image_depth and image_array_size,but it don&amp;#39;t work. my driver is follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;name : ARM Platform&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] vendor : ARM&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] version : OpenCL 2.1 v1.r21p0-01rel0.15967fb8d94527311cf969f52c0720a2&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] opencl device info : &lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] name : Mali-G57 r0p0&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] vendor : ARM&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] type : GPU&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] profile : FULL_PROFILE&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] version : OpenCL 2.1 v1.r21p0-01rel0.15967fb8d94527311cf969f52c0720a2&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] driver version : 2.1&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] max workgroup size : 512&lt;br /&gt;11-06 09:33:32.813 7993 7993 D mialgo_basic: [mialgo_basic] local mem size : 32768&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I wonder this driver don&amp;#39;t suppose u16 rgba svm to create image object&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mali G57  image object created from buffer through svm failed</title><link>https://community.arm.com/thread/168473?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 14:27:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:08111de3-8ecb-492f-875d-9cde01e1767b</guid><dc:creator>K&amp;#233;vin Petit</dc:creator><description>[quote userid="38273" url="~/developer/tools-software/graphics/f/discussions/47982/mali-g57-image-object-created-from-buffer-through-svm-failed"]size_t imageSize = width * height * sizeof(cl_uchar);[/quote]
&lt;p&gt;Shouldn&amp;#39;t this be sizeof(cl_ushort) given the channel data type is CL_UNSIGNED_INT16?&lt;/p&gt;
&lt;p&gt;If this doesn&amp;#39;t work, try setting image_depth = 1 and image_array_size = 1.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, then I&amp;#39;m afraid it looks like a potential driver issue. What driver version are you using? Any reason you&amp;#39;re starting from an SVM allocation rather than a buffer?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>