Skip to content

Commit

Permalink
[VP] Full support of Gen9 CML kernel integration
Browse files Browse the repository at this point in the history
Full support of Gen9 CML kernel integration
Stay the same compile option as Gen9
v20190405
http://ubit-gfx.intel.com/build/6522821

Change-Id: I967d7ef820abcdeac91a11d369ade1982c089984
  • Loading branch information
Wang_JohnZ authored and intel-mediadev committed Apr 24, 2019
1 parent 911bad6 commit 44ea208
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 31 deletions.
2 changes: 0 additions & 2 deletions media_driver/agnostic/gen9/vp/kernel/media_srcs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
set(TMP_SOURCES_
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9.c
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_isa_g9.c
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9_cml.c
)

set(TMP_HEADERS_
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9.h
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_isa_g9.h
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9_cml.h
)

set(SOURCES_
Expand Down
21 changes: 21 additions & 0 deletions media_driver/agnostic/gen9_cml/media_srcs.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2019, 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.

media_include_subdirectory(vp)
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
/*
* Copyright (c) 2019, 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.
*/
/*
* Copyright (c) 2019, 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.
*/

////////////////////////////////////////////////////////////////////////////////
// !!! WARNING - AUTO GENERATED FILE. DO NOT EDIT DIRECTLY. !!!
// Generated by KernelBinToSource.exe tool
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
// !!! WARNING - AUTO GENERATED FILE. DO NOT EDIT DIRECTLY. !!!
// Generated by KernelBinToSource.exe tool
////////////////////////////////////////////////////////////////////////////////

#ifdef IGFX_GEN9_SUPPORTED
#ifdef IGFX_GEN9_CML_SUPPORTED
extern const unsigned int IGVPKRN_G9_CML_SIZE = 1633728;
extern const unsigned int IGVPKRN_G9_CML[] =
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 Intel Corporation
* Copyright (c) 2019, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
Expand Down
42 changes: 42 additions & 0 deletions media_driver/agnostic/gen9_cml/vp/kernel/media_srcs.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (c) 2019, 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.

set(TMP_SOURCES_
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9_cml.c
)

set(TMP_HEADERS_
${CMAKE_CURRENT_LIST_DIR}/igvpkrn_g9_cml.h
)

set(SOURCES_
${SOURCES_}
${TMP_SOURCES_}
)

set(HEADERS_
${HEADERS_}
${TMP_HEADERS_}
)

source_group( "Kernel\\VpKernel" FILES ${TMP_SOURCES_} ${TMP_HEADERS_} )


media_add_curr_to_include_path()
23 changes: 23 additions & 0 deletions media_driver/agnostic/gen9_cml/vp/media_srcs.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2019, 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.

if(ENABLE_KERNELS AND ENABLE_NONFREE_KERNELS)
media_include_subdirectory(kernel)
endif()
4 changes: 4 additions & 0 deletions media_driver/agnostic/media_srcs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ if(GEN9)
media_include_subdirectory(gen9)
endif()

if(GEN9_CML)
media_include_subdirectory(gen9_cml)
endif()

if(GEN9_BXT)
media_include_subdirectory(gen9_bxt)
endif()
Expand Down
7 changes: 7 additions & 0 deletions media_driver/cmake/linux/media_gen_flags_linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ cmake_dependent_option(GEN9_KBL
cmake_dependent_option(GEN9_SKL
"Enabled SKL support (Gen9)" ON
"GEN9" OFF)
cmake_dependent_option(GEN9_CML
"Enabled CML support (Gen9)" ON
"GEN9" OFF)

option(GEN10 "Enable Gen10 support" ON)
cmake_dependent_option(GEN10_CNL
Expand Down Expand Up @@ -82,6 +85,10 @@ if(GEN9_KBL)
add_definitions(-DIGFX_GEN9_KBL_SUPPORTED)
endif()

if(GEN9_CML)
add_definitions(-DIGFX_GEN9_CML_SUPPORTED)
endif()

if(GEN10)
add_definitions(-DIGFX_GEN10_SUPPORTED)
endif()
Expand Down
4 changes: 4 additions & 0 deletions media_driver/linux/media_srcs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ if(GEN9)
media_include_subdirectory(gen9)
endif()

if(GEN9_CML)
media_include_subdirectory(gen9_cml)
endif()

if(GEN9_BXT)
media_include_subdirectory(gen9_bxt)
endif()
Expand Down

0 comments on commit 44ea208

Please sign in to comment.