Francisco Jerez
9b2fe7cf96
clover: Unabbreviate a few data accessor names for consistency.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2014-02-21 12:51:23 +01:00
Francisco Jerez
c4578d2277
clover: Migrate a bunch of pointers and references in the object tree to smart references.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2014-02-21 12:51:22 +01:00
Francisco Jerez
efcc84f425
clover: Store map result into a temporary vector in clCreateProgramWithBinary.
...
This avoids the inefficient multiple evaluation of the map result in
the code below. It should cause no functional changes.
Tested-by: "Dorrington, Albert" <albert.dorrington@lmco.com >
2014-01-15 16:45:05 +01:00
Tom Stellard
a84dd2398f
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 >
2013-11-18 11:54:28 -08:00
Francisco Jerez
b8f89fc5cb
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 <brunojimen@gmail.com >
2013-10-29 12:40:56 -07:00
Francisco Jerez
6230f77232
clover: Implement support for the ICD extension.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:03 -07:00
Francisco Jerez
7a9bbff7d6
clover: Clean up the kernel and program object interface.
...
[ Tom Stellard: Make sure to bind global arguments before retrieving handles. ]
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:03 -07:00
Francisco Jerez
10284b1d2d
clover: Clean up the interface of the context object slightly.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:03 -07:00
Francisco Jerez
35307f540f
clover: Switch kernel and program objects to the new model.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:03 -07:00
Francisco Jerez
9d06fb8fa8
clover: Switch context objects to the new model.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:02 -07:00
Francisco Jerez
c9e009b74d
clover: Switch device objects to the new model.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:02 -07:00
Francisco Jerez
d8b4994281
clover: Clean up property query functions by using a new property_buffer helper class.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:02 -07:00
Francisco Jerez
7d61769e44
clover: Switch to the new utility code.
...
Tested-by: Tom Stellard <thomas.stellard@amd.com >
2013-10-21 10:47:02 -07:00
Kenneth Graunke
f0cb66b699
mesa: Restore 78-column wrapping of license text in C++-style comments.
...
The previous commit introduced extra words, breaking the formatting.
This text transformation was done automatically via the following shell
command:
$ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript2
where 'vimscript2' is a file containing:
/THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/^ *$/ !fmt -w 78 -p '// '
:wq
Reviewed-by: Brian Paul <brianp@vmware.com >
2013-04-23 22:07:12 -07:00
Kenneth Graunke
96ff2edc73
mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.
...
This brings the license text in line with the MIT License as published
on the Open Source Initiative website:
http://opensource.org/licenses/mit-license.php
Generated automatically be the following shell command:
$ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \
sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {}
This introduces some wrapping issues, to be fixed in the next commit.
Reviewed-by: Brian Paul <brianp@vmware.com >
2013-04-23 22:07:06 -07:00
Tom Stellard
c68babfc3c
clover: Add support for compiler flags
...
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
2012-12-13 19:22:44 +00:00
Francisco Jerez
26fc30ef83
clover: No need for clover::is_zero() to be a functor.
...
Simplify is_zero() somewhat, and as a side effect work around a gcc compiler
bug that causes build failure.
https://bugs.freedesktop.org/show_bug.cgi?id=56140
Reported-by: Dmitry Cherkassov <dcherkassov@gmail.com >
2012-10-19 12:38:44 +02:00
Tom Stellard
1d21bd057a
clover: Handle NULL devs argument in clBuildProgram
...
If devs is NULL, then the kernel should be compiled for all devices
associated with the program.
2012-07-01 15:45:24 +02:00
Francisco Jerez
c6db1b3396
clover: Import OpenCL state tracker.
2012-05-11 12:39:44 +02:00