mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

- Curently each non-zerocopy CPU operation on map/unmap make a full copy using hostPtr - This commit adds functionality to select specific range of copy - Multiple mapping with different size is not supported yet, so copy will be made on full range for now. This is for future usage. Change-Id: I7652e85482ba6fffb2474169447baf9b080dcd1e
53 lines
2.9 KiB
CMake
53 lines
2.9 KiB
CMake
# Copyright (c) 2018, Intel Corporation
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
# to deal in the Software without restriction, including without limitation
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included
|
|
# in all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
# OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
#We are setting all of the source / OpenCL / tests / mem_obj files here and
|
|
#sending the variable up to the parent scope
|
|
set(IGDRCL_SRCS_tests_mem_obj
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/buffer_set_arg_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/buffer_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/buffer_pin_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/create_image_format_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/destructor_callback_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/get_mem_object_info_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/get_mem_object_info_subbufer_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_transfer_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_format_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_redescribe_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_release_mapped_ptr_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_set_arg_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_snorm_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_validate_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image1d_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image2d_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image3d_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_array_size_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image2d_from_buffer_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/image_tiled_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/mem_obj_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/mem_obj_destruction_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/nv12_image_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/packed_yuv_image_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/pipe_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/sub_buffer_tests.cpp"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/zero_copy_tests.cpp" PARENT_SCOPE)
|