<div dir="ltr"><span style="font-size:12.8px">Based on your comment about how your setup doesn't support GL/CL sharing, I tried defining </span><span style="font-size:12.8px">FLG_FOSPHOR_USE_CLGL_SHARING as 0 in private.h. Not sharing GL objects fixes the pixelated spectrum issue! No more cl_clear_queue_clear_buffers errors either, because the code never goes down that path anymore.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">It seems to me there is a bug in the way the histogram buffer or texture is allocated when it is allocated through the GL code path. I'm not sure if this is quirk of my setup/GPU/driver, or if this is a general bug; I do have an older NVIDIA GPU and another machine on which I can try to reproduce what I'm seeing.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Final question, what are the main downsides to NOT using CL/GL sharing? Is there some extra copy/performance overhead?</span></div><div><span style="font-size:12.8px"><br></span><div><div style="font-size:12.8px"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 5, 2017 at 2:36 PM, Raj Bhattacharjea <span dir="ltr"><<a href="mailto:raj.b@gatech.edu" target="_blank">raj.b@gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Sat, Feb 4, 2017 at 4:44 AM, Sylvain Munaut <span dir="ltr"><<a href="mailto:246tnt@gmail.com" target="_blank">246tnt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class="m_-3243205288636670419gmail-"><br>
>> I'm using the latest fosphor from git<br>
>> (7b6b9961bc2d9b84daeb42a5c8f8a<wbr>eba293d207c) and am seeing two weird (and I<br>
>> believe related) issues. Firstly, I see the following error:<br>
>><br>
>> [+] Selected device: TITAN X (Pascal)<br>
>> [!] CL Error (-30, /home/user/gr-fosphor/lib/fosp<wbr>hor/cl.c:409): Unable to<br>
>> queue clear of spectrum buffer<br>
><br>
> That's really weird indeed. Although I've seen it before. Can't<br>
> remember exactly what it was though ...<br>
<br>
</span>Actually the reason I'm not seeing it anymore on my setup is because I<br>
don't have any machine with CL/GL sharing working any more ... I<br>
changed laptop since and I can't get CL/GL sharing working with<br>
optirun and recent nvidia drivers ...<br>
<br>
One thing I would point out though is that if you have CL/GL sharing<br>
working, you can pretty much comment the entire call to<br>
cl_queue_clear_buffers because the GL side of things will clear the<br>
buffers already and they are the same. The independent clearing of the<br>
CL buffers only matter if they're different.<br></blockquote><div><br></div></span><div>I'll comment out that call for my purposes and let you know how that goes. My guess is that resolves the -30 error but not the blocky/pixelated spectrum histogram.</div></div><span class=""><br clear="all"><div><br></div>-- <br><div class="m_-3243205288636670419gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Raj Bhattacharjea, PhD</div><div>Georgia Tech Research Institute</div><div>Information and Communications Laboratory</div><div><a href="http://www.prism.gatech.edu/~rb288/" style="font-size:12.8px" target="_blank"><span style="font-size:12.8px">http://www.prism.gatech.edu/~r</span><wbr>b288/</a><br></div><div><a href="tel:(404)%20407-6622" value="+14044076622" target="_blank">404.407.6622</a></div></div></div></div></div></div></div></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Raj Bhattacharjea, PhD</div><div>Georgia Tech Research Institute</div><div>Information and Communications Laboratory</div><div><a href="http://www.prism.gatech.edu/~rb288/" style="font-size:12.8000001907349px" target="_blank"><span style="font-size:12.8000001907349px">http://www.prism.gatech.edu/~r</span>b288/</a><br></div><div>404.407.6622</div></div></div></div></div></div></div></div>
</div>