clover: Add checks for image support to the image functions v2
authorTom Stellard <thomas.stellard@amd.com>
Fri, 25 Jul 2014 21:12:28 +0000 (17:12 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 28 Jul 2014 14:10:30 +0000 (10:10 -0400)
commit3d636b47859ba084799a4caa34d22e622487f89e
treeb3d404f9a4f2c790154246a26753b586ebe56de1
parent7f96bea5bcb99c7eafac2bb17dfd5c5c26e6ae33
clover: Add checks for image support to the image functions v2

Most image functions are required to return a CL_INVALID_OPERATION
error when used on devices without image support.

v2:
  - Simplified the code

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