From: Francisco Jerez Date: Tue, 29 Oct 2013 18:21:09 +0000 (-0700) Subject: clover: Use context device list for error checking in clGetProgramBuildInfo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8f89fc5cbd41a45130630080ffc921c60604545;p=mesa.git clover: Use context device list for error checking in clGetProgramBuildInfo. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=70891. Reported-by: Bruno Jiménez --- diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 70835762b46..5ef1be60969 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -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) {