Merge pull request #913 from aaronenyeshi/fix-texture-constant-addrspace
Fix texture using constant addrspace 4
[ROCm/hip commit: ca7a53b13d]
This commit is contained in:
@@ -50,7 +50,7 @@ union TData {
|
|||||||
#define __TEXTURE_FUNCTIONS_DECL__ static inline __device__
|
#define __TEXTURE_FUNCTIONS_DECL__ static inline __device__
|
||||||
|
|
||||||
|
|
||||||
#if (__hcc_workweek__ >= 18114)
|
#if (__hcc_workweek__ >= 18114) || __clang__
|
||||||
#define ADDRESS_SPACE_CONSTANT __attribute__((address_space(4)))
|
#define ADDRESS_SPACE_CONSTANT __attribute__((address_space(4)))
|
||||||
#else
|
#else
|
||||||
#define ADDRESS_SPACE_CONSTANT __attribute__((address_space(2)))
|
#define ADDRESS_SPACE_CONSTANT __attribute__((address_space(2)))
|
||||||
|
|||||||
Reference in New Issue
Block a user