search for: use_image_for_buf

Displaying 1 result from an estimated 1 matches for "use_image_for_buf".

2015 Dec 22
0
Translating tests/trivial/compute.c gallium tests to opencl (input / help wanted)
...there I've gotten stuck. It uses a PIPE_BUFFER which it rw-binds as a resource. Which OpenCL does not allow. The closest thing is a constant parameter in OpenCL, at first I've tried binding this as a 2d image, but that leads to the gpu hanging, this is the code activated with "#define USE_IMAGE_FOR_BUF 1" in the above file. So in a 2nd attempt I've hacked clover to bind cl_mem objects passed in as constants as rw. This is the code when USE_IMAGE_FOR_BUF is not defined and works. In a 3th attempt because the hack is not something workable in the long run, I've tried to rewrite the t...