Commit Graph

39 Commits

Author SHA1 Message Date
Maneesh Gupta 11fe5b06de Merge in the rocclr based hip runtime (#2032)
* Merge master-next changes in master (include vdi development in master branch)



[ROCm/clr commit: f2e1118d7a]
2020-04-23 09:12:06 -07:00
ansurya 79c1ac76a4 tex1Dfetch behaviour for different address mode and filter mode (#1772)
Fixes github issue: #1754

- When ResourceDesc::resType is hipResourceTypeLinear ignore address mode and filter mode.
- When textureDesc::normalizedCoords is set to zero, AddressModeWrap and AddressModeMirror won't be supported and will be switched to AddressModeClamp.

[ROCm/clr commit: 68f1b814b1]
2020-04-01 12:10:17 +05:30
Rahul Garg 6f1d14c96d Fix hipMemcpy3D (#1798)
Fixes #1790 and #1791. hipMemcpy3D still requires further refactoring for different input and output combinations.

[ROCm/clr commit: ec84c16d75]
2020-02-17 19:35:35 +05:30
vsytch fd7dfa19d1 Add missing __hip_pinned_shadow__ attributes to the texture global vars. (#1866)
[ROCm/clr commit: 5afe43b1aa]
2020-02-15 09:52:25 +05:30
vsytch e2b6794a07 Device texture functions should not normalize the sampled pixel (#1826)
* Device texture functions should not normalize the sampled pixel. This is already done by HW.
* Add support to use h/w capability for normalized float data convertion for driver API's

Co-authored-by: ansurya <50609411+ansurya@users.noreply.github.com>


[ROCm/clr commit: fa363ae721]
2020-02-05 20:56:17 +05:30
jujiang-del a6012c4bfb [dtest] Avoid resViewDesc for non-array resource in texture creation (#1823)
[ROCm/clr commit: cb632005bc]
2020-01-30 14:04:41 -08:00
Rahul Garg 1e78733f53 Add hipBindTexture2D on NVCC path (#1773)
[ROCm/clr commit: 534376cb41]
2020-01-06 12:33:50 +05:30
Rahul Garg f524f75b69 Fix gcc build on NVCC path (#1661)
* Fix gcc build on NVCC path

* Fix CI build errors

* [dtest] Fix texture and surface obj2D tests


[ROCm/clr commit: ff31f734fe]
2019-11-18 12:19:22 +05:30
ansurya f5a92e5cb6 Fixed texture 2D mapping for pitched arrays & 3D Texture read (#1415)
Texture 2D image mapping for pitched arrays:
github issue: Texture Object's Buffer seems to be Misaligned #886
JIRA ticket: SWDEV-199313

SWDEV-151670 : Fixed issue with 3D texture with 4 components
SWDEV-151671 : Issue with 2D layered texture with 4 components

[ROCm/clr commit: dc8f556460]
2019-11-07 13:17:46 +05:30
Anusha Godavarthy Surya 712b6ccdc2 Added unbind texture to samples and tests
[ROCm/clr commit: 20cfe17805]
2019-10-15 11:34:15 +05:30
Anusha Godavarthy Surya c5fc879606 Fix undefine ref to hipUbindTexture for texture types
[ROCm/clr commit: a5d9f56bef]
2019-10-09 16:26:06 +05:30
ansurya 733178f492 Testcase to validate signed/unsigned char,short as normalized float (#1267)
* Testcase to validate signed/unsigned char,short as normalized float

* corrected test_common.cpp file path


[ROCm/clr commit: 440c5f1677]
2019-07-31 05:02:35 +00:00
Yaxun (Sam) Liu 2c8502f1db Add __hip_pinned_shadow__ for hip-clang and fix texture reference tests (#1200)
[ROCm/clr commit: 3169f3a881]
2019-07-03 08:51:59 +00:00
Maneesh Gupta 74110bbd43 [hit] Rename RUN -> TEST & RUN_NAMED -> TEST_NAMED
Change-Id: I75e24f15129973cee15fc9dac65d678bd2172074


[ROCm/clr commit: 53dd1df3fa]
2019-05-09 09:59:18 +05:30
Rahul Garg 45e7d824ad Fixed get alignment offset test for NVCC
- Removed dtest hipGetAlgntoffset2D.cpp
- hipGetTextureAlignmentOffset is being tested now in hipBindTexRef1DFetch.cpp


[ROCm/clr commit: c878d9cde4]
2018-09-18 14:10:03 +05:30
lthakur 313cdfd494 Added offset value verification.
Added offset value verification.

[ROCm/clr commit: b7a4b2c300]
2018-08-01 10:41:30 +05:30
lthakur 5cff332d5e Update hipGetChanDesc.cpp
Removed bool variable 'testResult' from global scope and confined it to the function.

[ROCm/clr commit: cac0f2cc95]
2018-07-17 13:40:54 +05:30
lthakur 5ea8ae2ea6 Update hipGetAlgntoffset2D.cpp
Removed unwanted space.

[ROCm/clr commit: 9f8d41df13]
2018-07-17 13:37:08 +05:30
lthakur bf68482ed9 Update hipGetAlgntoffset2D.cpp
Removed bool variable 'testResult' from global scope and confined it to the function.

[ROCm/clr commit: 7b6da4453b]
2018-07-17 13:35:22 +05:30
lthakur da77083acc Removed unused ,chan_test, variable.
[ROCm/clr commit: c2b508abfe]
2018-07-17 10:32:30 +05:30
lthakur 138d5f3d0c Update hipGetChanDesc.cpp
[ROCm/clr commit: 7003fe76f2]
2018-07-11 15:24:00 +05:30
lthakur 6ccf6807f6 Update hipGetAlgntoffset2D.cpp
[ROCm/clr commit: d395531f47]
2018-07-11 15:23:21 +05:30
lthakur 01b3ffc69f Update hipGetAlgntoffset2D.cpp
[ROCm/clr commit: d8b5f60e12]
2018-07-11 11:54:05 +05:30
lthakur b89f2310b8 Update hipGetChanDesc.cpp
[ROCm/clr commit: 5ba01d5033]
2018-07-11 11:53:16 +05:30
lthakur 48e4f03665 Update hipGetAlgntoffset2D.cpp
[ROCm/clr commit: b3b198f745]
2018-07-11 11:51:08 +05:30
Lakhan Singh 0f582a7893 Made changes as suggested.
[ROCm/clr commit: 936b878d72]
2018-06-15 11:30:02 +05:30
Lakhan Singh 8983f78d21 [GETandALGN]: Get channel and alignment details
[ROCm/clr commit: 7d6f1b8e38]
2018-06-12 15:22:05 +05:30
Rahul Garg b58a81f80e Fixed texture obj 1Dfetch test
[ROCm/clr commit: 7cfd059919]
2018-05-30 21:54:51 +05:30
Rahul Garg 6126733ebe Fixed tex1dFetch test
[ROCm/clr commit: 3b0842e70a]
2018-05-30 11:42:01 +05:30
Rahul Garg 914abf8c41 Fix runTest return type
[ROCm/clr commit: dabe2fda39]
2018-05-29 16:18:14 +05:30
Rahul Garg 51f21711a7 Fix tex2D tests for result value
[ROCm/clr commit: 28c878f266]
2018-05-29 16:03:37 +05:30
lthakur 53dc974461 HIP test case for 1D texture fetch (#424)
[ROCm/clr commit: 366a0a97ca]
2018-05-29 14:08:01 +05:30
Rahul Garg 897b8b48f5 Remove textureObj kernel argument for HIP/HCC path
[ROCm/clr commit: 35bc23ecc3]
2018-03-28 15:36:57 +05:30
Maneesh Gupta 46ddefedee Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/clr commit: 9e47fccc89]
2018-03-12 11:29:03 +05:30
Ben Sander 0de96b6e3e Merge pull request #256 from gargrahul/texture_driver_api_support
Texture driver APIs support

[ROCm/clr commit: e93a24bdbe]
2017-11-27 13:52:39 -06:00
Rahul Garg 896c146fef Porting guides update for texture APIs usage
[ROCm/clr commit: 3e9a4cfdd1]
2017-11-24 12:00:55 +05:30
Alex Voicu af0ae5421c This implements the trivial change needed to move back from the hip{Something}_{x, y, z} macros to the natural CUDA syntax of Something.{x, y, z}. This is contained in lines 384-404 in hip_runtime.h. All of the other changes have to do with changing unit tests to use this syntax. The macros are retained for backwards compatibility.
[ROCm/clr commit: 0cc921f103]
2017-11-19 01:54:12 +00:00
Rahul Garg 8f194d831a Added HIT block
[ROCm/clr commit: 05070fe824]
2017-09-26 11:39:09 +05:30
Rahul Garg aaa77132da Added Texture 2D object and reference APIs tests
[ROCm/clr commit: 36db84a68f]
2017-09-26 11:33:23 +05:30