Commit Graph

96 Commits

Author SHA1 Message Date
johnbasha shaik 50707fb182 Disable L3 caching for media resources
Change-Id: Ic75bbc7174a8320205784392d321b594c3cfea73
2019-04-10 23:41:17 -07:00
Artur Harasimiuk afd1548825 added new cmake parameter GMMLIB_API_PATCH_VERSION
adding this to allow creation of package with version independent from
API version used in shared library name.

Change-Id: I161755eb7e7680d02d018bc6531be96a1d97153b
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-04-05 16:22:13 -07:00
johnbasha shaik 8294f6851c Adding Comet lake PCH and DeviceId's
Change-Id: Id57a88b464a374cdeea465053ecb837bb37c3757
2019-03-27 21:31:26 -07:00
drprjap e65dff3842 Gen11 Fixed MOCS table
Change-Id: I8a357fcb00e3aa1414c7cfa7d6e2961d583fdec8
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-03-22 15:40:04 -07:00
johnbash ac68e2cebf Renaming Gmm flag for ApertureOnly
GMM_RESOURCE_FLAG::Info.ApertureOnly to GMM_RESOURCE_FLAG::Info.NonLocalOnly
Clients should use NonLocalOnly flag, ApertureOnly will be removed once
all clients switch to using new flag

Change-Id: I387a44dae87b111bb6aea8af3638909e8d6b92d3
2019-02-25 11:32:05 -08:00
drprjap 8bee050d28 Adding Lakefield support
Refactoring internal classes

Change-Id: Ifd38919c99e6414b0b63fb8c26ccb84c32e062de
Signed-off-by: drprjap <dimpalben.r.prajapati@intel.com>
2019-02-14 10:58:49 -08:00
johnbasha shaik 19fa8823c3 Correcting Valign and Halign value
Description:
Open source using different Valign values then closed source.
As per specifications valign value should not be zero.

Increment DLL version.
Change-Id: I966d4c81b737e622a0a7d56dc051084626648f32
2019-02-14 18:16:30 +05:30
johnbash bcac3f3833 Refactoring GMM internal Classes
Description: Refactoring GmmResourceInfo, PlatformInfo and TextureCalc
Classes.

Change-Id: Ic86a3c982737d2774ea481d1cb7977daceb21d3a
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-01-29 14:32:40 -08:00
Simon 001d32de21 [CM] CM cache policy entry for state heap
Change-Id: Ie7f588783ecc610a27f2ff139f344a6b6afccd2c
2019-01-23 11:04:11 -08:00
drprajap bd89465249 Remove static lib targets and switch ULT to use DLL
Change-Id: I395e0bc356ef917aeb3fe9230f11817a9564ffc4
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2019-01-15 15:18:39 -08:00
Prashanth Shankar 80dc72630f Title: [GMM DLL] Fix for Memory Leak in GMM Lib DLL
Risk: Low

Feature Impact: GMM LIB DLL

Description: This changes are for fixing the memory leak casued for not
freeing GMM ProcessSingletonCOntext.

Platforms:All

Change-Id: Ia315db53be5378c04c83fa005f02958fa8a047ea
2019-01-15 14:58:49 -08:00
johnbash 9e4aa143fb Linking pthread Library to GmmLib Dll
Change-Id: I81c09afb02a1869e0567393d99da5371c8c5d8cf
2019-01-15 13:37:03 -08:00
johnbasha shaik 413896ed8e Fix perftag mismatch issue
Add VPHAL_VEBOX_RESERVED1 to avoide the mismatch of perftag in open source

Change-Id: I1ab1007d867d2bf44e5e6743d68317cf6577ccb3
2018-12-06 18:19:44 +05:30
drprajap 10ad15adc3 Add memory config feature flag
Increment DLL version

Change-Id: I0c923b8d5f43ef39eb70630ed1920eb4d1d2cbdb
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-11-20 10:04:16 -08:00
drprajap fffd5a579e Add Gmm interface for memory config
Increment Dll Version

Change-Id: Ica11a2c7703eb1edf02eaf7cd758fda310f9bd17
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-11-19 23:09:11 -08:00
Artur Harasimiuk 5cd8dca50b cpack: Fix dependency setup for .rpm packages
we should use "intel-gmmlib(=<version>)" without space before (

Change-Id: Ie62e5df7b44e995d280c0fb132cd0ae7b1b3a680
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-31 17:51:22 +01:00
Artur Harasimiuk aedd82e2da cpack: fix dependency management for rpm
For rpm packages we should use <...>_REQUIRES instread of
<...>_DEPENDS.

Change-Id: I80f0caa069fbe4a7e2945dda619b4586a79df086
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-24 19:33:40 +02:00
drprajap 3e602a84dc Adding GMM interface for unified cp surface tracking
Bump up Major Version as new interface is added

Change-Id: I49081391db15652d37a1c055510407b830d0777c
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-18 10:01:57 -07:00
Artur Harasimiuk 6b14fa192e refactor package names to better match distro specific convention
Change-Id: I749c1871b25cfa63f058b0a1d77ec3ace7e94239
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-17 08:28:27 +02:00
Artur Harasimiuk d48db12155 separate GmmLib API version from package version
Change-Id: I645f9a631285d3e05de7b4f3aa2ab9a3d5d1a3ef
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-16 17:28:06 -07:00
kmvadsar 15ae0f7c59 Initialize variable and remove condition for Ftr check
Change-Id: Ie166aea0b96610518e27a4178174c2564b94e21c
2018-10-15 10:44:22 -07:00
drprajap 24c030f30b Remove spdlog from public interface
Fixes: #35

spdlog is needed internally for loggin and debug purpose,
no need to export it as part of public interface

Change-Id: Ide214e6a8da6661274d495432caf98d58b87ac5c
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-11 16:27:20 -07:00
kmvadsar e3f34698be Refactor the legacy TileY/Yf/Ys code under FtrTileY
Change-Id: I3b5c2d8367f79ab9b3f12ee6469fd4a204166bba
2018-10-10 23:21:46 -07:00
drprajap 456b7c0354 Install package with versioned library artifacts
- intel-gmmlib package contains .so.MAJOR_VERSION and so.MAJOR_MINOR_PATCH files.
- intel-gmmlib-devel contains .so file
- Change GMM_UMD_DLL to reflect MAJOR_VERSION in DLL naming.

Change-Id: I4c199e963e9b4e8f9f376e31225c6b46f94d6faf
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-10-10 14:53:30 -07:00
kmvadsar 859ed24441 Add gmm flag Gpu.ColorDiscard for tile pass color discard
Change-Id: I76682181a1f44e19da8dd3cb83076e8359f074c1
2018-10-02 23:25:14 -07:00
Dmitry Rogozhkin e52096b67a Build dynamic library with a linux-qualified name
Fixes: #28

By convention on Linux if library is going to be linked against it should have:
 * real name, which is usually libigdgmm.so.x.y.z, x.y.z is a library version
 * soname which is libigdgmm.so.x, usually that's a symbolic link to real name
 * linker name which is libigdgmm.so, usually that's a symbolic link to soname
Building library without the above convention is applicable only if library is
supposed to be dlopen(), i.e. for drivers and similar things.

Since gmmlib will be linked against rahter than dlopen-ed it should qualify to
the above Linux convention. This fix makes exactly that. CMake will automatically
create required symbolc links (soname and linker name).

This commit also bumps up the version of gmmlib.

Change-Id: I55f4bc30ba4e556a5cf6ac61609aa70939a9bdfc
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2018-09-28 11:59:39 -07:00
drprajap 5b61c8a6b1 Use DLL interfaces for ULT
Adding two Exported APIs in DLL - GmmInit and GmmDestroy.
GmmInit initializes singleton global context and ClientContext.
This avoid the need for clients to fill up function table.

Change-Id: I3bab29d2c10fd4d06cf78e1f33c9479d536477da
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-17 11:07:00 -07:00
kmvadsar 96c72ed94c Add Legacy TileY feature flag
Change-Id: I1a9cbc1e2dd37ce661bf7f27102e8065812df890
2018-09-14 16:26:04 -07:00
dvrogozh a08160a9e6 Do not wipe out compiler flags given by user
PR #33
Fixes: #31

Change-Id: I3224dc9e625a0eeaf8c957059a2ac747045564a0
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-13 16:06:59 -07:00
shankarp 3bbe741763 Fix Exception issue for shared resources
Change-Id: I65b4f1b0ae29e736ba3669b097feff2ae5516303
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-09-10 14:04:06 -07:00
drprajap fe0fc5afe8 Making GmmGenXCachePolicy dtors virtual.
Change-Id: I64a8639d9fa9e66a4d6a18375526a6c8cc3b99f4
2018-09-06 01:20:54 -07:00
Shaik, Johnbasha 99ff764181 Use exported APIs from ClientContext
[CP] dynamic gmm header file change copy from CL793947

Because certain ResourceInfo exported APIs are inlined,
GmmLib is accidently exposing internal functions/class members.
This is causing build issues with unresolved symbols when clients switch to dynamic linking.

Fix is to use ClientContext exported APIs for UMD clients.

Change-Id: I58db29d2f31c3f2586de80369f5ed085e14f06be
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-08-24 11:24:38 -07:00
Shaik, Johnbasha 173b246f96 Changes to address inlining of exported APIs
Avoid inlining of exported member functions in Client’s code in DLL mode, this is to eliminate exposing internal members in exported APIs causing linker issues.

Change-Id: Ia982002eb43f4816099f3de181f11bb1e25e5872
Signed-off-by: johnbash <johnbasha.shaik@intel.com>
2018-08-14 12:03:21 -07:00
drprajap 4f787cc7c4 Add GMM_LIB_DLL to igdgmm.pc
Change-Id: I56dc0eb72e87d0a8283c19df09370475d4e47891
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-08-10 10:14:38 -07:00
drprajap d3e1b053f6 add Libs section in igdgmm.pc
Fixes Github Issue#26 - https://github.com/intel/gmmlib/issues/26

Change-Id: Iba263064dcbaa1c1711a32f86edaa3c564d526a1
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-08-08 16:33:23 -07:00
johnbash af2add0120 Failure to build on alpine Linux distributions.
Issue#21

Change-Id: I566289dd99b549c22ce42cd5d1b0eeefb10fe4d4
2018-07-27 11:04:40 -07:00
drprajap 941eda5eb4 VDBox change for ICL
Change-Id: I929e116d46f12ef9aa1854dcde60aa73bd498c15
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-07-17 11:14:24 -07:00
lpriyank 1a4cf50767 FastclearRect downscaling API
Change-Id: I22ce7f7cea28f2a09af4bcf2681e0398439163e6
2018-07-03 10:06:31 -07:00
drprajap 41dbe28e68 Append .deb in package filename
Change-Id: Icf531666204ff50abf8b626c97d22f09ea07f397
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-06-28 16:31:35 -07:00
drprajap 375036ac35 Add DLL name and 64bit OS config check
define GMM_ENTRY_NAME and DLL name based on 32/64 bit OS check
add DLL name for linux clients (neo) - could be temporary until
clients use generated header

Change-Id: I4e1438cb3989ed6efcd4859e4676150e747ddd84
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-06-28 12:30:36 -08:00
shankarp b20e484a5b Add new member functions in GmmClientContext
These are equivalent C-wrappers which shall be deprecated.

Change-Id: Ic856c60348aec2adcd85f730cb538adc04d23ec3
2018-06-26 17:22:58 -07:00
drprajap 481063acbb Add Gen11 support
Change-Id: I9ab7c98cb98d8fba514b6559c59b158f89957367
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2018-06-26 16:39:31 -07:00
Artur Harasimiuk a40d1b3cf6 improve gmmlib package naming
- remove redundant gmm from file and package name
- specify gmmlib-devel package file name
- use proper architecture for .deb package

Change-Id: I0d3f124fc677edb04530106fd0a6f24d7cb92a3d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-27 00:33:47 +02:00
U. Artie Eoff 3e2ec40f02 Use GNUInstallDirs for install targets
Commit a5f2391 hard-codes
install paths and does not honor CMAKE_INSTALL_PREFIX
setting.

GNUInstallDirs uses GNU Coding Standards and properly determines
the correct install paths based on distro.  GNUInstallDirs
also honors the CMAKE_INSTALL_PREFIX correctly.  Users can
manipulate the install prefix by defining the builtin and standard
CMAKE_INSTALL_PREFIX variable during cmake configuration (i.e.
-DCMAKE_INSTALL_PREFIX=<prefix>).

Change-Id: I2090564acfd618345ca98940548654fa86baebee
2018-06-26 14:09:08 -07:00
drprajap a5f2391315 GmmLib shared/static library packaging
- Add make install for shared and static library
- package public interface  headers
- Add support for pkg-config via igdgmm.pc config file

Change-Id: I80f23dac0511b456de6d8e41827436be8587ee28
2018-06-22 13:12:37 -08:00
drprajap 72c92c0dfa Remove ARCH and detect architecture from compiler
Issue#17

Change-Id: I86331d399157015dd746dad5c9d66716629613cd
2018-06-21 14:31:14 -08:00
drprajap e6c8949164 change X64 macro for dll
Change-Id: I2d053c29c838021ce88ab46b22be4c76f2c7c3d1
2018-06-18 11:34:13 -07:00
shankarp 5ff84b923e Move the definition of GMM DLL name macro
Moving the definition to a separate header file.

Change-Id: If4995c6f6e188bfe1cb198e47cf94495f11efd73
2018-06-14 12:01:14 -07:00
shankarp d6bac5af0d Handle name mangling on x86 version
On x86 version, Due to C-mangling done by the compilier, macro definition used for GMM exported entry level function is modified to add _and@4

Change-Id: I83476775e02e74b584763c3257639456ddba7fe8
2018-06-06 09:11:36 -08:00
shankarp 3f3138424b Add definition for GMM_INLINE_VIRTUAL macro.
This is to be used for GMM DLL in Release-Internal and Release modes.

Change-Id: Iea30c0e72748717365259a9a6b39e6ef3280cd4e
2018-06-04 10:39:19 -08:00