diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-12-19 16:40:15 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-12-19 16:47:26 +0800 |
commit | a0c24d2d78de26674df56c4c7e4f180a597b5f5a (patch) | |
tree | 7e7485f953701c84fbdd92cf940a19d8f26cdf88 | |
parent | 888e9b9122ebb07f92107c2cfa16344b7d390762 (diff) |
GBE: code cleanup.
Remove some useless comments according to Matt's suggestion.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
-rw-r--r-- | backend/src/libocl/include/ocl_types.h | 8 | ||||
-rw-r--r-- | backend/src/libocl/src/ocl_image.cl | 4 | ||||
-rw-r--r-- | backend/src/llvm/llvm_sampler_fix.cpp | 2 |
3 files changed, 2 insertions, 12 deletions
diff --git a/backend/src/libocl/include/ocl_types.h b/backend/src/libocl/include/ocl_types.h index 7798ee12..3b4ce97d 100644 --- a/backend/src/libocl/include/ocl_types.h +++ b/backend/src/libocl/include/ocl_types.h @@ -82,17 +82,11 @@ DEF(double); #undef DEF ///////////////////////////////////////////////////////////////////////////// -// OpenCL built-in image types +// OpenCL built-in event types ///////////////////////////////////////////////////////////////////////////// // FIXME: // This is a transitional hack to bypass the LLVM 3.3 built-in types. // See the Khronos SPIR specification for handling of these types. -//#define sampler_t __sampler_t -//typedef const ushort __sampler_t; - -///////////////////////////////////////////////////////////////////////////// -// OpenCL built-in event types -///////////////////////////////////////////////////////////////////////////// typedef size_t __event_t; #define event_t __event_t diff --git a/backend/src/libocl/src/ocl_image.cl b/backend/src/libocl/src/ocl_image.cl index 8bbd1e28..9332f30d 100644 --- a/backend/src/libocl/src/ocl_image.cl +++ b/backend/src/libocl/src/ocl_image.cl @@ -143,15 +143,11 @@ bool __gen_ocl_sampler_need_rounding_fix(sampler_t); bool __gen_sampler_need_fix(const sampler_t sampler) { return __gen_ocl_sampler_need_fix(sampler); - -// return (((sampler & __CLK_ADDRESS_MASK) == CLK_ADDRESS_CLAMP) && -// ((sampler & __CLK_FILTER_MASK) == CLK_FILTER_NEAREST)); } bool __gen_sampler_need_rounding_fix(const sampler_t sampler) { return __gen_ocl_sampler_need_rounding_fix(sampler); -// return ((sampler & CLK_NORMALIZED_COORDS_TRUE) == 0); } INLINE_OVERLOADABLE float __gen_fixup_float_coord(float tmpCoord) diff --git a/backend/src/llvm/llvm_sampler_fix.cpp b/backend/src/llvm/llvm_sampler_fix.cpp index 39c7e2b4..8c76324e 100644 --- a/backend/src/llvm/llvm_sampler_fix.cpp +++ b/backend/src/llvm/llvm_sampler_fix.cpp @@ -1,5 +1,5 @@ /* - * Copyright © 2012 Intel Corporation + * Copyright © 2014 Intel Corporation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public |