diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2015-09-21 14:59:54 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2015-09-21 14:59:54 +0000 |
| commit | 9a7d4a940f86ed62da0b2ce82ee51f86d94d4735 (patch) | |
| tree | dbfa9010301e700204f387b5a3143206d7613e43 /libclc/generic/include | |
| parent | ccc0ec1ddbf073f36819b68b69cc72ea96d05f62 (diff) | |
| download | bcm5719-llvm-9a7d4a940f86ed62da0b2ce82ee51f86d94d4735.tar.gz bcm5719-llvm-9a7d4a940f86ed62da0b2ce82ee51f86d94d4735.zip | |
r600: Add image reading builtins.
Patch by: Zoltan Gilian
llvm-svn: 248160
Diffstat (limited to 'libclc/generic/include')
| -rw-r--r-- | libclc/generic/include/clc/image/image.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/image/image.h b/libclc/generic/include/clc/image/image.h index 9c975635008..8c9a44409c3 100644 --- a/libclc/generic/include/clc/image/image.h +++ b/libclc/generic/include/clc/image/image.h @@ -14,3 +14,16 @@ _CLC_OVERLOAD _CLC_DECL int get_image_channel_order (image3d_t image); _CLC_OVERLOAD _CLC_DECL int2 get_image_dim (image2d_t image); _CLC_OVERLOAD _CLC_DECL int4 get_image_dim (image3d_t image); + +_CLC_OVERLOAD _CLC_DECL float4 +read_imagef(image2d_t image, sampler_t sampler, int2 coord); +_CLC_OVERLOAD _CLC_DECL float4 +read_imagef(image2d_t image, sampler_t sampler, float2 coord); +_CLC_OVERLOAD _CLC_DECL int4 +read_imagei(image2d_t image, sampler_t sampler, int2 coord); +_CLC_OVERLOAD _CLC_DECL int4 +read_imagei(image2d_t image, sampler_t sampler, float2 coord); +_CLC_OVERLOAD _CLC_DECL uint4 +read_imageui(image2d_t image, sampler_t sampler, int2 coord); +_CLC_OVERLOAD _CLC_DECL uint4 +read_imageui(image2d_t image, sampler_t sampler, float2 coord); |

