Skip to content

[Xcode 9] Update Metal for GM - #2689

Merged
spouliot merged 5 commits into
dotnet:xcode9from
timrisi:MetalGM
Sep 15, 2017
Merged

[Xcode 9] Update Metal for GM#2689
spouliot merged 5 commits into
dotnet:xcode9from
timrisi:MetalGM

Conversation

@timrisi

@timrisi timrisi commented Sep 13, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/metal.cs Outdated
#endif
[Export ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")]
[return: NullAllowed]
IMTLRenderPipelineState NewRenderPipelineState (MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, [NullAllowed] out MTLRenderPipelineReflection reflection, [NullAllowed] out NSError error);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreateRenderPipelineState, e.g.

		[Export ("newComputePipelineStateWithFunction:options:reflection:error:")]
		IMTLComputePipelineState CreateComputePipelineState (IMTLFunction computeFunction, MTLPipelineOption options, out MTLComputePipelineReflection reflection, out NSError error);

Comment thread src/metal.cs Outdated
[Abstract]
#endif
[Async (ResultTypeName="NewRenderPipelineStateResult"), Export ("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")]
void NewRenderPipelineState (MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLNewRenderPipelineStateWithReflectionCompletionHandler completionHandler);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Comment thread src/metal.cs
IMTLDevice Device { get; }

[iOS (11, 0), TV (11,0), NoMac, NoWatch]
[Abstract]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's an existing type, you cannot add abstract requirement on it

Comment thread src/metal.cs
nuint MaxTotalThreadsPerThreadgroup { get; }

[iOS (11, 0), TV (11,0), NoMac, NoWatch]
[Abstract]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Comment thread src/metal.cs
bool ThreadgroupSizeMatchesTileSize { get; }

[iOS (11, 0), TV (11,0), NoMac, NoWatch]
[Abstract]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Comment thread src/metal.cs
nuint ImageblockSampleLength { get; }

[iOS (11,0), TV (11,0), NoMac, NoWatch]
[Abstract]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@spouliot

Copy link
Copy Markdown
Contributor

@timrisi please double check the test failures

@spouliot spouliot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the new Metal stuff did not make it to tvOS (part of the test failures)

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing

Comment thread src/metal.cs Outdated
#if XAMCORE_4_0
[Abstract]
#endif
[Async (ResultTypeName="NewRenderPipelineStateResult"), Export ("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Async, it is not currently possible to do in Protocols

@VincentDondain

VincentDondain commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Not sure we want to block the PR for that but we really should test MTLRenderCommandEncoder.cs, we're adding manual code without tests here.

Comment thread src/metal.cs Outdated

[Mac (10,13, onlyOn64: true)]
[NoTV][NoiOS]
[Mac (10,13, onlyOn64: true), iOS (11,0), TV (11,0)]

@VincentDondain VincentDondain Sep 14, 2017

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor but I try not to update existing availability attributes (diff noise) so I would have added [iOS (11,0), TV (11,0)] bellow the Mac one in replacement of [NoTV][NoiOS] (;

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@spouliot

Copy link
Copy Markdown
Contributor

@timrisi looks like tests were not updated not to execute for tvOS

-tvOS - simulator (BuildFailure)
Project file: /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tests/monotouch-test/monotouch-test-tvos.csproj 
Platform: iPhoneSimulator Configuration: Debug 
Build duration: 00:00:10.6219051 
Main log
Build log
Metal/MTLTileRenderPipelineDescriptor.cs(17,3): error CS0246: The type or namespace name 'MTLTileRenderPipelineDescriptor' could not be found (are you missing a using directive or an assembly reference?) 
Metal/MTLTileRenderPipelineColorAttachmentDescriptorTests.cs(17,3): error CS0246: The type or namespace name 'MTLTileRenderPipelineColorAttachmentDescriptor' could not be found (are you missing a using directive or an assembly reference?) ```

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@spouliot

Copy link
Copy Markdown
Contributor

build timed out (after 2 hours stuck)

@spouliot

Copy link
Copy Markdown
Contributor

build

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@spouliot
spouliot merged commit 46f4875 into dotnet:xcode9 Sep 15, 2017
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Aug 23, 2023
Bump maccore to bing the changes for governance and some others:

* Merge 'xcode15' into 'main'. (dotnet#2690)
* [Submission] Add NotaryTool Task (dotnet#2689)
* [XmlDocSync] Remove the XmlDocSync reference from the project. (dotnet#2693)
* [mlaunch] Refactor project structure (dotnet#2694)
* [certificates] Update la_dev_apple.p12, la_distr_apple.p12 and la_mac_installer_distr.p12 (dotnet#2697)
* [Governance] Update the false positives files based on the last runs. (dotnet#2698)

Full idff: https://github.com/xamarin/maccore/compare/fd15821e6780a7439df467c69eb511a046adfa06...63fd14954ca3328219c5f79c754f0b329091535c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants