clover: Optionally return context's devices from clGetProgramInfo()
authorTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 23:50:34 +0000 (15:50 -0800)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 18 Nov 2013 19:54:28 +0000 (11:54 -0800)
commita84dd2398f75c672293122408828ac66bb7052a0
tree6e05eb1d71be09b4c807ba4a694257238fce4036
parent7dfb4b2d00ddb8e5ee24d4c58eb9415dc4ccc21c
clover: Optionally return context's devices from clGetProgramInfo()

The spec allows clGetProgramInfo() to return information about either
the devices associated with the program or the devices associated
with the context.  If there are no devices associated with the program,
then we return devices associated with the context.

https://bugs.freedesktop.org/show_bug.cgi?id=52171

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/clover/api/program.cpp