forked from blender/blender
main sync #3
@ -342,9 +342,13 @@ id<MTLComputePipelineState> gpu::MTLTexture::mtl_texture_update_impl(
|
|||||||
options:options
|
options:options
|
||||||
error:&error] autorelease];
|
error:&error] autorelease];
|
||||||
if (error) {
|
if (error) {
|
||||||
|
/* Only exit out if genuine error and not warning. */
|
||||||
|
if ([[error localizedDescription] rangeOfString:@"Compilation succeeded"].location ==
|
||||||
|
NSNotFound) {
|
||||||
NSLog(@"Compile Error - Metal Shader Library error %@ ", error);
|
NSLog(@"Compile Error - Metal Shader Library error %@ ", error);
|
||||||
BLI_assert(false);
|
BLI_assert(false);
|
||||||
return nullptr;
|
return nil;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fetch compute function. */
|
/* Fetch compute function. */
|
||||||
@ -658,10 +662,14 @@ id<MTLComputePipelineState> gpu::MTLTexture::mtl_texture_read_impl(
|
|||||||
options:options
|
options:options
|
||||||
error:&error] autorelease];
|
error:&error] autorelease];
|
||||||
if (error) {
|
if (error) {
|
||||||
|
/* Only exit out if genuine error and not warning. */
|
||||||
|
if ([[error localizedDescription] rangeOfString:@"Compilation succeeded"].location ==
|
||||||
|
NSNotFound) {
|
||||||
NSLog(@"Compile Error - Metal Shader Library error %@ ", error);
|
NSLog(@"Compile Error - Metal Shader Library error %@ ", error);
|
||||||
BLI_assert(false);
|
BLI_assert(false);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Fetch compute function. */
|
/* Fetch compute function. */
|
||||||
BLI_assert(temp_lib != nil);
|
BLI_assert(temp_lib != nil);
|
||||||
|
Loading…
Reference in New Issue
Block a user