clover: Add CL_MEM_HOST_* flag checks.
authorEdB <edb+mesa@sigluy.net>
Sun, 22 Feb 2015 13:00:06 +0000 (15:00 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 24 Feb 2015 14:17:18 +0000 (16:17 +0200)
commit0e8460a52882ec58743991fec431f85300bea209
tree09711fb33f8cb2e79d91e2dbb1f9b8a0174263b4
parent80d3c1e5372d56a55701b10b937173c27615e4b0
clover: Add CL_MEM_HOST_* flag checks.

Those flags have been introduced in OpenCL 1.2.

[ Francisco Jerez: Rebase.  Throw CL_INVALID_VALUE from
  clCreateSubBuffer if the subbuffer drops access flags from its
  parent.  Use single function taking the set of allowed host access
  flags to validate memory transfer operands. ]

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/memory.cpp
src/gallium/state_trackers/clover/api/transfer.cpp