Commit Graph

66 Commits

Author SHA1 Message Date
Jobczyk, Lukasz c7d7346fd0 Remove deprecated GMM api
Resolves: NEO-3143

Change-Id: I34e18c25f7a1f8073926a6725d479958af722d1a
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-05-09 10:59:29 +02:00
Dunajski, Bartosz 0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
Dunajski, Bartosz bb80d327c7 Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 16:11:01 +02:00
Mateusz Hoppe 4733e51770 Extended format support in VA sharing
- enabled with Debug Variable
- allow P010 surface sharing

Related-To: NEO-3049

Change-Id: I837d9f2e31a4ea2a9cf763430021929222cf3001
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-26 12:28:33 +02:00
Dunajski, Bartosz d7ab156a56 Revert "Update H/V alignment GMM API"
This reverts commit b3e1bb08ba.

Change-Id: I412a515892c5f6ee2cfee3aae862d2473fe19dee
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-15 10:01:49 +02:00
Dunajski, Bartosz b3e1bb08ba Update H/V alignment GMM API
Change-Id: I394f51bee0ffb23007f4f0970b89dc15deb7e5c2
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-12 13:14:41 +02:00
Mateusz Hoppe e82d6e63cb Refactor GMM creation
- extract createResourceParams method from queryImageParams
- add tilingMode to ImageInfo

Change-Id: I32cc2a7d32892147545017e592e2796f85057b46
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-01 13:56:02 +02:00
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
Artur Harasimiuk 1ce597a5c7 removed redundant pragma
Change-Id: Idba8e00de19be70d08b82903090a3d3ee62743c5
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-03-21 15:59:40 +01:00
Mateusz Jablonski 24cb171d2a Rename DevicesBitfield -> StorageInfo
Change-Id: I2f763be185350de7b76838c9f101a1f8026f42c9
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-04 11:44:04 +01:00
Pawel Wilma fbcdee4cf4 Use DeviceBitfield in applyMemoryFlags()
Change-Id: I62563df2424f802509fa5669de2fe61e8918e96f
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-02-28 15:57:05 +01:00
Filip Hazubski 8b57d28116 clang-format: enable sorting includes
Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-02-27 11:50:07 +01:00
Jablonski, Mateusz 9e7c30cb06 Choose Standard or Standard64 heap depending on 64KB suitablity of resource
Change-Id: I633b1bef1cdef2c5149909c997adc85434bcaf73
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2019-02-21 12:18:26 +01:00
Jablonski, Mateusz 05d02a6fe7 Change DevicesBitfield type to struct
Change-Id: I7a005b07737cdd21efc174a2ee2be0f6b7f9068d
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2019-02-18 13:57:50 +01:00
Maciej Plewka 5abda619a1 Set pitch and qPitch for unified multisample images
Change-Id: I4eaf8678077f7ecd7f5f9ec860a3e59b7e89e78c
2019-02-11 15:52:18 +01:00
Maciej Plewka d58b9840b8 Fix surfaceState for multisample images
Change-Id: I2d4b17e162f61892ca1a86c241a722ef0c51ee42
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-02-05 12:44:57 +01:00
Pawel Wilma d56daf1726 Pass devicesBitField to gmm
Change-Id: Icad8a95d37d487fb7d01410c606baad67f681651
2019-01-28 14:51:09 +01:00
Dunajski, Bartosz 996d4f8387 Update GMM API to query TileMode for SurfaceState programming
Change-Id: I7cef2d8651037874811f8e3fefabc70470eec5bb
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-01-23 08:35:15 +01:00
Dunajski, Bartosz 0c2f5aa491 Change width programming for GMM
Change-Id: If2a1a0d582cbebb209de182895d1f6decedcfb73
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-01-18 09:53:27 +01:00
Kowalczuk, Jakub 3c59bae5a4 Set NoGfxMemory in Gmm Constructor
Change-Id: Iee36e6de82db12c84970e68e1c940b67ec957eab
2019-01-11 08:11:22 +01:00
Mateusz Jablonski 6a3bbc002e Set correct flags for tiling when platform doesn't support y tiling
Change-Id: I39de5c91aafb9099d799c3323016df692cab349c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-04 22:55:11 +02:00
Mateusz Jablonski caa477115f Remove support for static gmmlib
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>

https://github.com/intel/compute-runtime/pull/91

Change-Id: I90184d7aabf3dd0d8a74ff40115213241b4ca724
2018-10-02 18:21:51 +02:00
Mateusz Jablonski 83f733fb70 Use dynamic gmmlib on Linux
Change-Id: Ia7d30fecf0406a14babe83d29743562de8bf7a29
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-09-21 17:34:31 +02:00
Artur Harasimiuk 40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00
Cetnerowski aa61fa150e Explicitly abort, if pitch == 0
Change-Id: Ie46f134cff50fd590120af584060f9623bc05b9c
Signed-off-by: Cetnerowski <adam.cetnerowski@intel.com>
2018-09-19 14:13:46 +02:00
Katarzyna Cencelewska 962b6ce883 Add support for cl-gl sharing
Change-Id: I08d7608722746baa3be61846e05eecb5419cc136
2018-09-18 11:18:46 +02:00
Mateusz Jablonski 9ac3529c6b Remove template parameter from Wddm methods
Change-Id: Icd700c7215184d4c0f9564c61868a1f9f29a75e5
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-08-23 16:37:31 +02:00
Woloszyn, Wojciech e102f6c36b Add missing getMaxLod() gmm call
Change-Id: I14e672b17ddfc9a7045ee66a694642f224a0f4e7
2018-08-10 15:49:24 +02:00
Hoppe, Mateusz 4cb408294c Add useSystemMemoryPool flag to Gmm
Change-Id: Ide27887de9169a9d958d3f232bcd70a1b7afe94f
2018-08-03 12:52:23 +02:00
Mateusz Jablonski 89cf7532ea Make all gmm helper members non-static
Change-Id: Idb399aa275d66905040b6317d3888c94ffb98c55
2018-08-03 08:25:44 +02:00
Mateusz Jablonski 601caa8b27 Pass gmm entries to gmm client context wrapper
Change-Id: I618da55ef2eec9858ebb6570b5070bed6ddb73bf
2018-08-01 15:05:05 +02:00
Mateusz Jablonski df2f29907c Change createGmmContextWrapperFunc to return unique ptr
Change-Id: I74e6c5b1a49ed19f24933edd3062c62d9256f2d8
2018-07-30 18:14:06 +02:00
Mateusz Jablonski a906ddaa66 Make gmm client context non-static member
Construct platform and initialize gmm in each test

Change-Id: I4f209369e77213420308f31f911b7a569ea93283
2018-07-27 00:16:30 +02:00
Mateusz Jablonski 6618a35126 Remove static gmmlib support on Windows
Change-Id: I9e52f11b196ef9364b710766d9dd302e4dc0cc64
2018-07-24 10:02:03 +02:00
Mateusz Jablonski ab7920ba14 Gmm Memory: initialize client context in constructor
Change-Id: Iaaa40f5485faceb022e018be7930777e14575b46
2018-07-23 12:27:03 +02:00
Dunajski, Bartosz 512978768e Pass renderCompressed information to GMM for 64kb allocations
Change-Id: I56302055c028e919bceeb3333557cab7451e1d09
2018-07-23 11:28:43 +02:00
Mateusz Jablonski 8537c7f42f Use types of gmm dll functions in gmm interfaces
Change-Id: I91bd9563abbcde32a0c88066a2f6747c1d5abc81
2018-07-23 10:07:27 +02:00
Mateusz Jablonski 8ed9991910 Remove not used function, unify gmm interface filenames
Change-Id: I017697ec4076ddd47f2039f71805a895d687c8a9
2018-07-23 09:09:47 +02:00
Mateusz Jablonski 36db75da28 Create gmm client context wrapper, reduce mock_gmm
Change-Id: I4eec4366afeb175fea4bf7934e3046b50fe30fe9
2018-07-17 11:46:04 +02:00
Mrozek, Michal e34c47271b Fix destruction sequence in execution environment.
- Gmm needs to be closed after memory manager.

Change-Id: I608fc328034012ce52b7e791afd9ad2ff2f0cd1a
2018-07-13 09:40:19 +02:00
Maciej Dziuban 2589286d42 Change gmm_memory.h location
Change-Id: Ie4ebde5829794c37281034971639d166b128d755
2018-07-10 15:59:58 +02:00
Mateusz Jablonski 94dbdb602d Add instance of gmm helper to execution environment
Change-Id: I1b044611fbad91fbb681ba233938f41502f29056
2018-07-06 08:48:19 +02:00
Dunajski, Bartosz e26d67cde3 Aux surface programming for Buffers [1/n]: Gmm interface improvement
Change-Id: I984b8ebee27808a236217e82bb4e910550d624c4
2018-07-03 13:00:08 +02:00
Dunajski, Bartosz 5408913d38 Set HwInfo to GmmHelper on Device creation
This allows querying HwInfo from code that doesnt have access to Device

Change-Id: I0084f824f557cd85c2fdfbf0ff2ec71118e9af2e
2018-06-29 11:02:52 +02:00
Dunajski, Bartosz e18e9fb94e Move static methods from Gmm to new GmmHelper class
Change-Id: I84fbe94f0e1072324164086b456c71a46ae5040c
2018-06-27 16:46:09 +02:00
Mateusz Jablonski b659d270ae Revert "Create wrapper for GmmClientContext"
This reverts commit 50c31872d8.

Change-Id: Id154ca2d217e5e45623750f641ebad5dc5e840a2
2018-06-21 16:14:45 +02:00
Mateusz Jablonski 50c31872d8 Create wrapper for GmmClientContext
reduce mock gmm to implementation of OpenGmm function

Change-Id: I657412af2d11486c9924cf3ab9a8b4f51e603964
2018-06-21 10:17:46 +02:00
Mateusz Jablonski 98b8b4b6a4 Prepare to use gmm as dll on Windows
Since this commit neo on Windows can use static or shared gmm lib

Change-Id: I7db70d7f9bc969e8193ac77e8b6d65ecc57d0093
2018-06-08 17:35:01 +02:00
Dunajski, Bartosz 46003145e9 Gmm interface update
- Use local gmmClientContext instead of pGMMGlobalContext
- ResourceInfo and PTmanager creation from gmmClientContext
- Mock Gmm context creation in Wddm to have only one instance per run

Change-Id: I67e015c57f0ab5524564760fd9a849615615697f
2018-05-10 08:51:46 +02:00
Chodor, Jaroslaw 0a97dfbb2f [1/n] Mipmap support
* adding support for map/unmap
* adding support for origin/region validation with mipmaps
* fixing slices returned in map/unmap
* removing ambiguity around mipLevel naming
* enabling cl_khr_mipmap_image in current shape
* enabling cl_khr_mipmap_image_writes in current shape

* fixing CompileProgramWithReraFlag test

Change-Id: I0c9d83028c5c376f638e45151755fd2c7d0fb0ab
2018-04-05 01:09:27 +02:00