Commit Graph

9246 Commits

Author SHA1 Message Date
mplewka 2c2bbbcdbb Add support for zero-copy r/w buffer
Change-Id: Ie9f3f2211d107eb338bd97692d36e9c7d7a0feab
2018-01-22 09:40:51 +01:00
ocldev 79e4b2c104 dependencies update
Change-Id: Ibdb61a83f11c32a26a9aa3680c55b9eeaaa30082
2018-01-19 14:56:29 +01:00
kkasper b08de2733e Fix status returned by clSetKernelArg.
- In case of mismatched access qualifiers it would return
  CL_INVALID_KERNEL_ARGS. This is not correct, CL_INVALID_ARG_VALUE
  should be returned instead.

Change-Id: I0dc929e22269b4e34e347502c6cc4067e67ba165
2018-01-19 13:38:52 +01:00
Mrozek, Michal 0066daf495 Add support for deletion of allocations that may be in use by GPU.
- fix deletion of constant program surface
- fix deletion of global program surface
- move program_data tests to shared code
- make program_data tests SKU agnostic

Change-Id: Icf3e9fd035416072699336c4f86e49703ef48cc5
2018-01-19 12:34:49 +01:00
hjnapiat d91d01fedd Fix initialization of GT-Pin helpers
Change-Id: I20556d62f9914cd73d9d9da0678a051549d9f1b4
2018-01-19 11:00:58 +01:00
Mrozek, Michal 292d6c9bed Do not force stateless when m32 flag is passed.
Change-Id: I1915ffc82c35aa9ffe3fd4b108f717318fd1a67c
2018-01-19 07:57:35 +01:00
Mrozek, Michal c6233e1d06 Add support for deferred deletion of private surface.
- If it is in use add it to temporary allocation list
- If it is not in use destroy in place

Change-Id: I6304d1a3b641243f3f7eadff8e38d8515b132f68
2018-01-18 19:53:24 +01:00
Milczarek, Slawomir 3e84c4df7a Introduced a new graphics allocation type of ALLOCATION_TYPE_NON_AUB_WRITABLE.
This commit moves the allocation's aubfile write permission property
from OS agnostic MemoryAllocation to general GraphicsAllocation class.

Change-Id: I82ca2716d6b65d314460bd9f5d33e1113f9d7c07
2018-01-18 18:36:14 +01:00
Mateusz Jablonski 7c9378e973 Cleanup after changing pipeline select programing
Change-Id: I746b80b2537aa111d8e010749614c9debc0c89b5
2018-01-18 15:06:32 +01:00
Dunajski, Bartosz 8b9713582a Aux programming fixes + ULT improvements
- Dont program clear color aux params for multisampled images (depth or MCS)
- Mock Gmm PageTable manager default actions
- Local Wddm for WddmCsr tests to make expects on creation
- Set Gmm PageTable manager for Wddm Memory Manager tests without WddmCsr

Change-Id: I8ccfddb06340bc81184e07eff5a7078756d28571
2018-01-18 14:40:56 +01:00
Mateusz Jablonski 13ac81f465 Change pipeline select programing
- Program one PS with gpgpu selection and media sampler
- Program PS only when media sampler requirement changed
  or when preamble was not sent

Change-Id: I85ba3f74087733e79d048e120aeb8b4b04796e00
2018-01-18 14:39:47 +01:00
Mrozek, Michal ae1213a98d Fix use after free problem.
- freeGraphicsMemory checks for command stream receiver in device and
uses it if it is present.

Change-Id: I8e3f2202dc694bd8903b04780e550dc1fd115ef4
2018-01-18 12:04:46 +01:00
Dunajski, Bartosz 3b626a0290 Force Disable ftrCompression on Linux
Change-Id: Ia5dc4b323571442ee52551d93869163fc3f45834
2018-01-18 09:16:28 +01:00
Zdanowicz, Zbigniew 75a902bf2c Wddm freeGraphicsMemory should handle null GraphicsAllocation same as Drm
Change-Id: Idafdaf654f630d41b890f87c6e8c14833b18f714
2018-01-18 08:24:07 +01:00
Zdunowski, Piotr 5e7eccefe5 Improve error handling for shared objects.
Change-Id: I86fccb26cbf327b49c1b4992eeb3d25e52d3bced
2018-01-17 21:32:36 +01:00
Mrozek, Michal e2680d395c Fix incorrect pointer programming when offseted SVM pointers are used.
Change-Id: Idf8b6d9c116cf6fb8cfd069158e9eef4d981b272
2018-01-17 21:22:06 +01:00
Zdanowicz, Zbigniew fa43e42887 Resolve ambiguous include order for files of the same names for differen Gens
Change-Id: I26cfc73819884e967d47ef4cb95e2f3f4835ad4d
2018-01-17 18:52:30 +01:00
Mrozek, Michal e923c2211b Add Unrecoverable if GraphicsAllocation in use is being destroyed.
Change-Id: I74a54ef023c62e12d711db07d79942166e002188
2018-01-17 18:36:33 +01:00
Dunajski, Bartosz a9a24e82e5 Prefer render compression for tiled images
Change-Id: I1ae1cf9a5cfdc54ab4d889456e252cd1f9860883
2018-01-17 15:18:47 +01:00
Artur Harasimiuk 764f686ad9 minor tweak in instrumentation detection
IGDRCL__INSTRUMENTATION_DIR_SUFFIX depends on component availability. if
available we should use BRANCH_DIR_PREFIX otherwise it should be "/"

Change-Id: I8bdd80041afeda85d93e72b23b1f940fb04754fc
2018-01-17 13:57:35 +01:00
Koska, Andrzej be0306ca68 Adding support for passing proper extensions list from cloc to compilers
Change-Id: I89249cd6ccae9996cd33d7ba26007c778207f028
2018-01-17 12:47:44 +01:00
Chodor, Jaroslaw 044fd1ab81 Fixing IntDescr programing for blocked cmd and MT
Fixing InterfaceDescriptor programming for
blocked commands when MidThread preemption is
enabled
Additionally, fixing couple of tests that block
global preemption enabling in ULTs

Change-Id: I454c9608f8606f23d7446785ac24c7c7d8701ae0
2018-01-17 12:19:07 +01:00
Mrozek, Michal 41f0ac3019 Check if we do not access outside of array.
Change-Id: I3357b745d36398ad52777054f64a7915278c0463
2018-01-17 09:33:57 +01:00
Artur Harasimiuk 9e89d4e6cd refactor cmake to better detect and use instrumentation
Change-Id: I465c76f5d86331cf1ef4cbab054bc41e1c95716b
2018-01-17 00:07:10 +01:00
Zdanowicz, Zbigniew 602474f868 Command streamers should use device default engine type
Change-Id: I7286f15ba78001729ea489a43576d96f109d44f0
2018-01-16 22:37:44 +01:00
Artur Harasimiuk 42ed21f7fa Readme.md update
- added list of dependencies
- added build instruction

Change-Id: Idf2d773fa3f7d05bfaee5e9f71387455d32a4aa8
2018-01-16 21:21:59 +01:00
Dunajski, Bartosz d11474beab Gmm utils separation
Change-Id: I9f2bdf249aa04b2ada216eee92771880202f5576
2018-01-16 18:44:05 +01:00
Mateusz Jablonski be6f211910 Add pipeline select mask bits getter in preamble helper
Change-Id: I783c911ad69916a979e58256a8705d22a86f6a41
2018-01-16 16:51:17 +01:00
Artur Harasimiuk 3883f790cc Instrumentation refactoring
Use bool instead of int where it should be.
Tweak naming.
Removed unused members

Change-Id: I468be28d78e9da7c7fa1632e362ed077929fb91a
2018-01-16 16:15:44 +01:00
Mrozek, Michal dd601ff73a Utilize shortened version of optimal HW thread count in nx4 scenarios.
- also clean early return if simd size = 0

Change-Id: I9b01df091ab6dd6a3066d1a8762c7fb1530c2804
2018-01-16 14:47:07 +01:00
Milczarek, Slawomir 92ebb0c3c1 AubCSR to operate in batched dispatch mode (by default)
This commit changes the default dispatch mode for AUB CSR
from the immediate dispatch to the batched dispatch mode.

Change-Id: Idca914475a9a38788fd94e16eb6db4c0afb1bdd6
2018-01-16 13:24:40 +01:00
Mrozek, Michal ee250be942 Fix num thread per slice computation.
- It should use thread count not EU count.
- change variable name to reflect that we work on sublices.
- fix test description, add missing test
- change hasBarrier variable to be boolean

Change-Id: I627bdf17b661d2f9b5eb3d8cd6ca53eba5d46b81
2018-01-16 13:06:31 +01:00
Zdanowicz, Zbigniew 474b6a2a23 Enable Mid-Thread preemption for Gen9
Change-Id: Iacec1c8fa899d4fbf0cbb9cc292990546871ca6a
2018-01-16 12:55:35 +01:00
Mrozek, Michal 8ee2c54a50 Disable squared algorithm.
Change-Id: Ibecbd75b97596e56efc92445f46a4f2a4768a351
2018-01-16 11:20:26 +01:00
Dunajski, Bartosz 3df51c3e88 Aux format support check for render compressed resources
Change-Id: Ief7c5cc436c781e5b90cf71b17bf7c15c63c5c14
2018-01-16 09:50:46 +01:00
hjnapiat 111897132e Switch to new version of GT-Pin headers
Change-Id: I909d1c578b4b9c3d7e24d3e33a9bfd86a815ab14
2018-01-15 20:20:53 +01:00
Mrozek, Michal af77720f9c Fix resource destruction scheme on device closure.
- Call waitForTaskCountAndCleanAllocationList with latest flushed task count
to reflect what was actually sent to HW.

- refactor cleanAllocationList to waitForTaskCountAndCleanAllocationList

Change-Id: I5301185c5fce212e39eb017b952b43c279559cf4
2018-01-15 18:45:48 +01:00
Mrozek, Michal 42798fcae0 Revert "Add Unrecoverable if GraphicsAllocation in use is being destroyed."
This reverts commit 920d952a4a.

Change-Id: Ib14743e37545776ebf1b6e782daceb436d280f9b
2018-01-15 14:43:11 +01:00
Milczarek, Slawomir 7c42353c4c Add support for batched dispatch to userspace AUBs
This commit as aimed to add support for batched dispatch,
but doesn't make it the default mode for AubCSR yet.

Change-Id: I4dc366ec5f01adf2c4793009da2100ba0230c60a
2018-01-12 15:40:56 +01:00
Mrozek, Michal 920d952a4a Add Unrecoverable if GraphicsAllocation in use is being destroyed.
Change-Id: Ie224ac4d098678a99da0a8c084f02740f323c475
2018-01-12 15:22:15 +01:00
Mateusz Jablonski 502e9c2d15 Async deleter: move releasing cpu/gpu pointers to main thread
Change-Id: I3c3c9fb6200c38ecf1fc8910380531d6a5f1e875
2018-01-12 13:16:59 +01:00
Mrozek, Michal 7640201585 Allow squared algorithm to work together with base one.
Change-Id: I9087957bb427a422b1be632f6375c96b8f91a492
2018-01-12 12:05:04 +01:00
hjnapiat 031b537e2b Allow defining tests that should not be executed
- Uses GTest option --gtest_filter=<pattern> to define tests
   that should not be executed.
- This allows making experiments with tests as prototyping, debugging etc.

Change-Id: Iabcd06dc1311a2edb0ad67564c542fec3a9b2e98
2018-01-12 11:45:18 +01:00
Dunajski, Bartosz c939419ccc preferRenderCompression flag for GMM resources creation
Change-Id: I718fa21d0feb825e0a3215408c78fa49d094a15f
2018-01-12 11:01:57 +01:00
Dunajski, Bartosz b0c07bf27f Transfer more ftr/wa flags to GMM
Change-Id: Iab7a27c96a9d8529c7583cc3dc975a5c2dbeb0ed
2018-01-12 08:57:52 +01:00
Kowalczuk, Jakub 877370ef6d Fixing relesae-internal build
Delete variables: gtest_lib and gmock_lib in CMakeLists

Change-Id: Ie2d6e4ca34acef60aaa1b14d0526eb0fbf293097
2018-01-11 18:02:34 +01:00
Artur Harasimiuk 67c220e599 fix types used
- value32 is 32 not 64bits
- DDI should be bool

Change-Id: Ic077bc2882974639f1e6e4592971a614b3d4c88c
2018-01-11 14:33:05 +01:00
Mateusz Jablonski 00b0c81d1a Manifest update
Change-Id: Icea09f09248cc7f8e12520b7f36887971bcf3352
2018-01-11 09:21:48 +01:00
Dunajski, Bartosz 97021d74a8 Ftr/Wa table separation
Change-Id: I21034f6ec09d8b91dd6cd16135fbe5a19298dcad
2018-01-11 08:55:06 +01:00
Wojciech Woloszyn c74cabbb9e manifest update
Change-Id: Ie996bdf83ab35f66132a2994bb4dc137a679815b
2018-01-10 19:22:21 +01:00