Merge branch 'blender-v4.1-release'
This commit is contained in:
commit
a53e8d6d24
@ -135,7 +135,9 @@ CUDADevice::CUDADevice(const DeviceInfo &info, Stats &stats, Profiler &profiler)
|
||||
CUDADevice::~CUDADevice()
|
||||
{
|
||||
texture_info.free();
|
||||
|
||||
if (cuModule) {
|
||||
cuda_assert(cuModuleUnload(cuModule));
|
||||
}
|
||||
cuda_assert(cuDevicePrimaryCtxRelease(cuDevice));
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,9 @@ HIPDevice::HIPDevice(const DeviceInfo &info, Stats &stats, Profiler &profiler)
|
||||
HIPDevice::~HIPDevice()
|
||||
{
|
||||
texture_info.free();
|
||||
|
||||
if (hipModule) {
|
||||
hip_assert(hipModuleUnload(hipModule));
|
||||
}
|
||||
hip_assert(hipCtxDestroy(hipContext));
|
||||
}
|
||||
|
||||
|
@ -85,8 +85,6 @@ static void drw_deferred_shader_compilation_exec(void *custom_data,
|
||||
|
||||
while (true) {
|
||||
if (worker_status->stop != 0) {
|
||||
/* We don't want user to be able to cancel the compilation
|
||||
* but wm can kill the task if we are closing blender. */
|
||||
break;
|
||||
}
|
||||
|
||||
@ -151,6 +149,13 @@ static void drw_deferred_shader_compilation_free(void *custom_data)
|
||||
DRWShaderCompiler *comp = (DRWShaderCompiler *)custom_data;
|
||||
|
||||
BLI_spin_lock(&comp->list_lock);
|
||||
LISTBASE_FOREACH (LinkData *, link, &comp->queue) {
|
||||
GPU_material_status_set(static_cast<GPUMaterial *>(link->data), GPU_MAT_CREATED);
|
||||
}
|
||||
LISTBASE_FOREACH (LinkData *, link, &comp->optimize_queue) {
|
||||
GPU_material_optimization_status_set(static_cast<GPUMaterial *>(link->data),
|
||||
GPU_MAT_OPTIMIZATION_READY);
|
||||
}
|
||||
BLI_freelistN(&comp->queue);
|
||||
BLI_freelistN(&comp->optimize_queue);
|
||||
BLI_spin_unlock(&comp->list_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user