Commit Graph

30 Commits

Author SHA1 Message Date
johnmach 2d5f77a6a3
Adding Support for DG2 (#74) 2021-12-04 17:44:40 +05:30
johnmach 6143502f4e
Remove unsed APIs and Update Gmmlib Version to 12.0 (#69)
* Remove old and unsed APIs

* Updating the Gmmlib Version for ABI changes
2021-12-04 14:51:08 +05:30
johnmach ffd91d07b7
GMM Global Context removal (#62)
* Phase 1: As part of global and static code removal- GMM policy, plaformInfo and texture class updated to have pGmmGlobal contextas part of it

* Updating the GMM #define to make sure it uses parameterized GMMlib Context

* Replace pGmmGlobalContext with member variable with pGmmLibContext in all GMM cache policy files

* Replace pGmmGlobalContext with pGmmLibContext in all Platform Class related API

* Remove any remaining use of pGmmGlobalContext

* Phase 2: Update Macros to use pGmmLibContext (local) instead of global pGmmGlobalContext

* Replace pGmmGlobalContext with pGmmUMDLibContext/pGmmKMDLibContext in GMM_RESOURCE_INFO class and its member functions

* All KMD level pGmmGlobalContext global variable is removed and replaced with pGmmLibContext

* Phase 3: Add support for Multi-Adapter in GMM UMD Library and replace pGmmGloContext to pGmmLibContext

* Make GMM UMD DLL Initialize and Destroy APIs backward compatible for SingleAdapter use case

* Phase 4: Enable and add support for Multi-Adapter ULT for GMM UMD DLL in GMM ULT

* Update the Entry-Level Init and destroy APIs

* Phase 5: Remove the pGmmGlobalContext Global and its dependencies

* Initial cleanup of KMD code

* Updating variable data type and License Info
2021-12-03 21:57:13 +05:30
johnbash cac1a15c98
Xe_HP_SDV Unembargoed. (#43) 2021-04-21 20:06:34 +05:30
johnmach 395401fe31
Revert "Planar Surface Redescription: GMM existing path removal + pitch adjustment (#6)" (#10)
This reverts commit 8057a638c1.
2020-12-15 19:02:29 +05:30
johnmach 8057a638c1
Planar Surface Redescription: GMM existing path removal + pitch adjustment (#6) 2020-12-04 17:05:52 +05:30
johnbasha shaik 1598c1b46f Gmmlib uAPI Implemenetation to accept full comprehensive memory layout description
for the import path for both dmabuf and userptr.

Change-Id: Ie8dbcc740f942511ed8e9441fd453acc84924f78
2020-10-27 04:36:12 -07:00
johnbasha shaik 21ca89b426 Fix for media compression mode issue.
Change-Id: Ifd87988191fb46b3ffc9ef68a8f888c0569b0350
2020-06-18 16:34:31 +05:30
johnbasha shaik 088702b92b Add new media compression mode to fix assertion
Change-Id: I8a005065b547954adfa17fe35208622062400664
2020-06-17 15:40:54 +05:30
johnbasha shaik a09c68fd32 Add Pagetable manager and auxtable support.
Change-Id: I429b52a70c77fc304c65d28d42b18f99b01116d5
2019-09-14 08:02:31 +05:30
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
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
kmvadsar 15ae0f7c59 Initialize variable and remove condition for Ftr check
Change-Id: Ie166aea0b96610518e27a4178174c2564b94e21c
2018-10-15 10:44:22 -07:00
kmvadsar e3f34698be Refactor the legacy TileY/Yf/Ys code under FtrTileY
Change-Id: I3b5c2d8367f79ab9b3f12ee6469fd4a204166bba
2018-10-10 23:21:46 -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
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
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
lpriyank 1a4cf50767 FastclearRect downscaling API
Change-Id: I22ce7f7cea28f2a09af4bcf2681e0398439163e6
2018-07-03 10:06:31 -07:00
vipuldas a6c821ef69 Remove YUVShaderFriendlyLayout, update GetQpitchPlanar to return QPitch in rows
Fix GetQpitchPlanar function to return Qpitch in rows and not in bytes (UMDs do not have to perform any additional calculations, GMM returns Qpitch that can be programmed directly)

Change-Id: Ice2e5baf1153a108807f3eae7be57d7cecd05bac
2018-05-21 14:59:11 -07:00
lpriyank 932fb0addd Generic texture calculation for HiZ
Change-Id: I94ba01620036bb6b3b34c8ce5b65d7e7572630a6
2018-04-05 09:32:39 -08:00
shankarp aaaf72ffd0 GmmLib only DLL integration
- Add GMM lib DLL project in Cmake file.
- All code changes needed to make GMM lib DLL are under GMM_LIB_DLL macro.
- Add ProcessSingleton elements in DLL context.
- Establish a link between DLL singleton Data and Process Singleton data in ProcessContext in KMD for ProcessSingleton elements. This is needed when GMM lib exists in both static and DLL mode.
- Overloaded Create and Destroy GMM objects member fucntions of ClientContext to take memory Allocators and Deallocators from Clients. This is needed for Clients like VK.

Change-Id: Iab4e596723a0fa0eede262bdb26436ba8a7d5cc1
2018-03-14 13:13:34 -07:00
shankarp 4155f0604e Enable unified gmmlib target
- These changes are for enabling unified GMM lib target. Unified GMM lib target will not have any clients specific build macros.
- Addition of GMM Old API Translation Layer for backward compatibilty for all GMM APIs across ALL UMD clients.
- Creation of Global Client Context handle only for backward compatible clients. This shall be replaced by client handle by clients moving to new API.
- Add new definitions for GMM Device Callbacks structure.
- Add new definitions for KMDaf related macros only for GMM to be used bu unified GMM lib.
- Makes ClientContext class member of Resinfo class
- GmmLib cmake change to add new igfxgmmumd unified static lib project

Change-Id: I913192e0879e565fb369c364fcba573a18b3fe13
2018-02-21 15:30:15 -08:00
drprjap 12d4b159f4 Legacy features code cleanup
Change-Id: I9ce11f49b7213c192ac916fa8d971e8f3401e01f
2018-02-12 23:35:38 -08:00
drprajap f7b5da59be Revert "Add new target to unify gmmlib"
This reverts commit d6c3b56745.

Change-Id: I55a7c86f0d9a834f546e497324c6d2d7f464ba87
2018-02-07 23:36:09 -08:00
shankarp d6c3b56745 Add new target to unify gmmlib
- Makes ClientContext class member of Resinfo and PageTableMgr class
- Addition of OCL Translation Layer
- GmmLib cmake change to add new igfxgmmumd unified static lib project

Change-Id: If155bafad29086ab5309c24f1f8a1862f92eb654
2018-01-29 12:03:41 -08:00
drprajap b1451bbe4c Add ClientContext class
Special MOCS handling

Remove client specific definitions for GMM_ASSERT and GMM_DEBUG macros

Change-Id: I8360f07277678a67a68c311061fde3400726a874
2018-01-11 13:55:42 -08:00
drprajap afc3466ce8 GmmLib WIN types cleanup
Change-Id: Ib38192027947da95bdec170ae236881cd8cd728d
2017-12-15 11:52:21 -08:00
drprajap 7a1ec78c0b Initial open source release for media-driver
Signed-off-by: drprajap <dimpalben.r.prajapati@intel.com>
2017-12-01 10:44:37 -08:00