clover: Add a stub implementation of clCreateImage() v3
authorTom Stellard <thomas.stellard@amd.com>
Wed, 30 Apr 2014 19:57:24 +0000 (12:57 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 2 May 2014 13:48:17 +0000 (06:48 -0700)
commite05cebafd8ff127ead71fadc20f2e2c8c719481a
tree5e70f5850f0eaab25ece6e2b2be7055f2fc21740
parent11f92fd9f996290422c73ea4f29f12593371748a
clover: Add a stub implementation of clCreateImage() v3

Now that we are uisng the OpenCL 1.2 headers, applications expect all
the OpenCL 1.2 functions to be implemented.

This fixes linking errors with the piglit CL tests.

v2:
  - Use c++ features
  - Fix error code handling

v3:
  - Move <iostream> into api/util.hpp
  - Fix indentation

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