Xcode: Spurious Metal warning

Originator:markd
Number:rdar://30480908 Date Originated:2/11/2017
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.3 beta 2 (8W120l)
Classification:UI/Usability Reproducible:Didn't try
 
Summary:
I had some errors in my project. That happens.  There was also a spurious error "memoryless is unavailable", with a pointer to something in Metal:

/Users/markd/Projects/BNR/GrafDemo/GrafDemo/PathChunksView.swift:69:13: error: use of unresolved identifier 'context'
            context.addEllipse(in: rect)
            ^~~~~~~
/Users/markd/Projects/BNR/GrafDemo/GrafDemo/PathChunksView.swift:73:17: error: use of unresolved identifier 'context'
                context.fillPath()
                ^~~~~~~
/Users/markd/Projects/BNR/GrafDemo/GrafDemo/PathChunksView.swift:75:17: error: use of unresolved identifier 'context'
                context.strokePath()
                ^~~~~~~
<unknown>:0: warning: 'cacheParamsComputed' is deprecated
<unknown>:0: warning: 'cacheAlphaComputed' is deprecated
<unknown>:0: warning: 'keepCacheWindow' is deprecated
<unknown>:0: error: 'memoryless' is unavailable
Metal.MTLCommandBufferError:55:14: note: 'memoryless' has been explicitly marked unavailable here
        case memoryless
             ^

The project is attached, with errors..  A movie is posted at https://www.dropbox.com/s/brwu75n03mo77n7/hot-metal.mp4?dl=0 . The build log is attached.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
10.12.2 (16C67)
Version 8.3 beta 2 (8W120l)

Notes:


Configuration:


Attachments:
'GrafDemo.zip' and 'hot-metail.rtf' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!