P4 to Git Change 1155415 by gandryey@gera-w8 on 2015/05/28 11:39:24

ECR #304775 - Mipmaps support
	- Avoid a bogus error message for a mipmap unmap

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#121 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#219 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.hpp#81 edit
This commit is contained in:
foreman
2015-05-28 11:55:23 -04:00
parent 2b7be4d803
commit 89ab6d41a0
3 changed files with 10 additions and 5 deletions
+3 -1
View File
@@ -875,7 +875,9 @@ Memory::decIndMapCount()
amd::ScopedLock lock(owner()->lockMemoryOps());
if (indirectMapCount_ == 0) {
LogError("decIndMapCount() called when indirectMapCount_ already zero");
if (!mipMapped()) {
LogError("decIndMapCount() called when indirectMapCount_ already zero");
}
return;
}