From f2bb42a095acde57c540ff619c422132f491ef1c Mon Sep 17 00:00:00 2001 From: Sayak Biswas Date: Sat, 20 Nov 2021 01:26:30 +0100 Subject: Fix T92984: Cycles HIP crash with smoke volumes This fixes the the app crash happening when trying to render smoke as a dense 3D texture. The changes are related to matching up hipew with the actual HIP headers. Differential Revision: https://developer.blender.org/D13296 --- extern/hipew/include/hipew.h | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'extern/hipew/include/hipew.h') diff --git a/extern/hipew/include/hipew.h b/extern/hipew/include/hipew.h index d18cf67524d..90a538719ab 100644 --- a/extern/hipew/include/hipew.h +++ b/extern/hipew/include/hipew.h @@ -804,31 +804,29 @@ typedef enum hipDeviceP2PAttr { } hipDeviceP2PAttr; typedef struct HIP_MEMCPY3D { - size_t srcXInBytes; - size_t srcY; - size_t srcZ; - size_t srcLOD; + unsigned int srcXInBytes; + unsigned int srcY; + unsigned int srcZ; + unsigned int srcLOD; hipMemoryType srcMemoryType; const void* srcHost; hipDeviceptr_t srcDevice; - hArray * srcArray; - void* reserved0; - size_t srcPitch; - size_t srcHeight; - size_t dstXInBytes; - size_t dstY; - size_t dstZ; - size_t dstLOD; + hArray srcArray; + unsigned int srcPitch; + unsigned int srcHeight; + unsigned int dstXInBytes; + unsigned int dstY; + unsigned int dstZ; + unsigned int dstLOD; hipMemoryType dstMemoryType; void* dstHost; hipDeviceptr_t dstDevice; - hArray * dstArray; - void* reserved1; - size_t dstPitch; - size_t dstHeight; - size_t WidthInBytes; - size_t Height; - size_t Depth; + hArray dstArray; + unsigned int dstPitch; + unsigned int dstHeight; + unsigned int WidthInBytes; + unsigned int Height; + unsigned int Depth; } HIP_MEMCPY3D; typedef struct HIP_MEMCPY3D_PEER_st { @@ -879,7 +877,7 @@ typedef struct HIP_RESOURCE_DESC_st { hipResourceType resType; union { struct { - hArray * h_Array; + hArray h_Array; } array; struct { hipMipmappedArray_t hMipmappedArray; -- cgit v1.2.3