clover: Use context device list for error checking in clGetProgramBuildInfo.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 29 Oct 2013 18:21:09 +0000 (11:21 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 29 Oct 2013 19:40:56 +0000 (12:40 -0700)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=70891.

Reported-by: Bruno Jiménez <brunojimen@gmail.com>
src/gallium/state_trackers/clover/api/program.cpp

index 70835762b46bf3e5e831e28439587e00ec27ac53..5ef1be60969dfbcf00036bc3ac109c1947599083 100644 (file)
@@ -222,7 +222,7 @@ clGetProgramBuildInfo(cl_program d_prog, cl_device_id d_dev,
    auto &prog = obj(d_prog);
    auto &dev = obj(d_dev);
 
-   if (!count(dev, prog.devices()))
+   if (!count(dev, prog.ctx.devs()))
       return CL_INVALID_DEVICE;
 
    switch (param) {