[Mesa-dev] [Bug 101952] OpenCL enqueueReadBuffer returns trash

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 27 16:08:21 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101952

--- Comment #2 from Janpieter Sollie <janpieter.sollie at dommel.be> ---
Hi Mr. Vesely,
hereby a minimal extract:

__kernel void startTest(__constant char* arg, __constant uchar* arg2, size_t
arg3, __constant char* phrase, size_t _len, __global int* output) {
    char result;
    if(output[3] == 255) return;
    result = external_function_call(phrase, arg2, arg3, _len, arg);
    if(result == 2) {
        output[3] = 255;
        output[0] = get_global_id(0);
        output[1] = get_global_id(1);
        output[2] = get_global_id(2);
    }
    else if(result == -1) output[3] = 127;
    return;
}

the reason why I doubt the correctness of readbuffer is there is no 255 int at
place 3, while something was read from somewhere, so I guess it's looking at
the wrong place ...
and yes, the global id (0.0.0) will give a result of 2, at least it does with
amdpro and pocl

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170727/789ed259/attachment.html>


More information about the mesa-dev mailing list