From b8f89fc5cbd41a45130630080ffc921c60604545 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 29 Oct 2013 11:21:09 -0700 Subject: [PATCH] clover: Use context device list for error checking in clGetProgramBuildInfo. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes https://bugs.freedesktop.org/show_bug.cgi?id=70891. Reported-by: Bruno Jiménez --- src/gallium/state_trackers/clover/api/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2