Fixed host allocated globals address lookup for host usage

Fixed texture driver APIs failure
This commit is contained in:
Rahul Garg
2018-01-30 18:06:31 +05:30
parent 84e3333c5b
commit 24ab820a11
4 changed files with 8 additions and 11 deletions
+1
View File
@@ -453,6 +453,7 @@ hipError_t hipArrayCreate ( hipArray** array, const HIP_ARRAY_DESCRIPTOR* pAlloc
array[0]->width = pAllocateArray->width;
array[0]->height = pAllocateArray->height;
array[0]->isDrv = true;
array[0]->textureType = hipTextureType2D;
void ** ptr = &array[0]->data;
if (ctx) {
const unsigned am_flags = 0;