clover: Add parameter checks to clCreateBuffer.
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 17 Dec 2013 16:19:09 +0000 (11:19 -0500)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 18 Dec 2013 15:18:15 +0000 (16:18 +0100)
commit21f82188ce389a2543c894dd6d88fbebb25cc796
treea6fc243bed9ec7fd6b51175a1e75aaf814e4e1d7
parent78fcc31d4a8179ca24a8008a1ad1ca6bdb668fdd
clover: Add parameter checks to clCreateBuffer.

v2: Use fewer if statements and functional tricks instead of single-use method,
    suggested by Francisco Jerez.
    Squash two small patches into one.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/memory.cpp