1549 Commits

Author SHA1 Message Date
Bill Hollings
2dd34de8ee
Merge pull request #912 from tmm1/tvos
tvOS support
2020-06-19 09:39:29 -04:00
Aman Gupta
b8fb92a9e3 oops forgot this return 2020-06-18 16:36:45 -07:00
Aman Gupta
e952660afb these were introduced with Metal 2.0 (tvOS 11) 2020-06-17 18:36:48 -07:00
Aman Gupta
1b08aee36e ensure devID is for A10X 2020-06-17 17:25:20 -07:00
Aman Gupta
bdff52283d remove !MVK_TVOS usage 2020-06-17 17:14:31 -07:00
Aman Gupta
e847fb38e9 fix some missing return warnings 2020-06-17 14:46:06 -07:00
Aman Gupta
639d9182ac assume tvos v1 shipped with these vertex things 2020-06-17 11:05:27 -07:00
Aman Gupta
800d8b4133 audit tvos pixel formats against metal-feature-set-tables.pdf 2020-06-17 10:56:41 -07:00
Aman Gupta
c59c137a3c populate devID for tvOS 2020-06-17 10:42:08 -07:00
Aman Gupta
7392e23db2 unncessary change in the diff 2020-06-17 10:30:41 -07:00
Aman Gupta
073222f8ab proper fix for pixel formats on tvos 2020-06-17 10:28:49 -07:00
Aman Gupta
60d3b3377b fix tvOS compat by using selectors instead of property syntax 2020-06-17 10:25:10 -07:00
Aman Gupta
5bf4d08d15 oops, bad merge here 2020-06-17 10:23:45 -07:00
Aman Gupta
766bed17e6 xcode updates 2020-06-17 10:15:34 -07:00
Aman Gupta
ec82fa46aa this is not supported 2020-06-17 10:15:23 -07:00
Aman Gupta
ded0d173f6 set MTL language versions correctly 2020-06-17 10:15:14 -07:00
Aman Gupta
64ec56b41c reuse iOS framework template for tvOS 2020-06-17 10:06:34 -07:00
Aman Gupta
a0e357fab5 Merge remote-tracking branch 'upstream/master' into tvos 2020-06-17 10:05:40 -07:00
Bill Hollings
ae5282f38c
Merge pull request #928 from billhollings/master
Inline MVKVulkanAPIObject::retain()/release() calls.
2020-06-16 15:43:31 -04:00
Bill Hollings
9956b722de
Merge pull request #927 from cdavis5e/robustness2
Advertise the VK_EXT_robustness2 extension.
2020-06-16 15:13:25 -04:00
Bill Hollings
6cede2b776 Inline MVKVulkanAPIObject::retain()/release() calls.
This improves performance of these calls by 30%.
2020-06-16 14:53:14 -04:00
Chip Davis
75da0c694b Advertise the VK_EXT_robustness2 extension.
We only support the `robustImageAccess2` feature for now. Metal's
guarantees around out-of-bounds accesses to textures give us this for
free. `nullDescriptor` should also be possible to implement, but it
needs testing. Null image descriptors will probably just work, but null
buffer pointers probably not. We may need help, either from SPIRV-Cross
or a pass in SPIRV-Tools. `robustBufferAccess2` definitely needs an
assist from SPIRV-Tools. All three are useful for Direct3D compatibility
layers (DXVK, wined3d).
2020-06-16 12:06:38 -05:00
Bill Hollings
3505d5899d
Merge pull request #926 from billhollings/master
Fix issue where mapped host-coherent device memory not updated from image contents on macOS.
2020-06-16 11:39:27 -04:00
Bill Hollings
821dbd1240
Merge pull request #922 from Lichtso/VK_EXT_inline_uniform_block
Fixes 4 bugs in VK_EXT_inline_uniform_block
2020-06-16 11:38:25 -04:00
Bill Hollings
205b859580 Fix issue where mapped host-coherent device memory not updated from image contents on macOS.
Currently, when a mapping is initiated for host-coherent device memory, existing
image contents are copied from the MTLTexture to host memory. However, if
host-coherent device memory is already mapped in a long-standing memory mapping,
changes to MTLTexture content are not reflected to the host memory.

This change adds that capability to open memory mappings. When the image pipeline
barrier is applied to an image that is attached to a host-coherent device memory
that currently has an open memory mapping, the MTLTexture contents are copied to
the open host memory binding.

Add MVKMappedMemoryRange to retrieve the currently mapped range in an MVKDeviceMemory.

MVKImage cleanup use of isHostCoherent(). Let it be same as MVKDeviceMemory
and don't test for it from macOS because it is unnecessary.
2020-06-15 22:18:53 -04:00
Aman Gupta
d8adfa6989 ensure metal devices are seen on tvos 2020-06-15 18:33:23 -07:00
Aman Gupta
f8133bfb84 missing tvOS symlinks 2020-06-15 17:55:57 -07:00
Aman Gupta
1cb99b1b3f fill in tvOS details from Metal-Feature-Set-Tables.pdf 2020-06-15 17:46:00 -07:00
Aman Gupta
ef08f0d9fb fix some warnings 2020-06-15 17:05:07 -07:00
Aman Gupta
7d1b1e7e8e fix build 2020-06-15 16:49:51 -07:00
Aman Gupta
8c7b6771bc oops 2020-06-15 16:47:53 -07:00
Aman Gupta
ad61c70427 define initGPUInfoProperties stub 2020-06-15 16:47:20 -07:00
Aman Gupta
b13dd86350 forgot an ios reference 2020-06-15 16:45:27 -07:00
Aman Gupta
50e8d9cae5 more conditionals 2020-06-15 16:44:56 -07:00
Aman Gupta
9694169da6 split out MVK_IOS_OR_TVOS 2020-06-15 16:36:05 -07:00
Aman Gupta
b250212c6f add MVK_TVOS and start conditionalizing build failures 2020-06-15 16:21:13 -07:00
Aman Gupta
4ab6b3d4fe fix more xcode deps for tvos 2020-06-15 16:11:14 -07:00
Aman Gupta
4b1aa0a0c4 add template framework for tvos 2020-06-15 15:55:36 -07:00
Aman Gupta
aabc94995b forgot a script 2020-06-15 15:54:31 -07:00
Aman Gupta
b26d8673b0 more tvos fixes 2020-06-15 15:53:54 -07:00
Alexander Meißner
82a07ed468 Replaced _mtlBuffer by a malloc of _buffer and _length.
Added comments about why the third parameter of read() and write() is different.
2020-06-15 09:02:19 +02:00
Bill Hollings
c1c49def22 Move applyImageMemoryBarrier() logic to MVKImagePlane.
Mark MVKResource::bindDeviceMemory() as virtual.
Remove use of !! from mvkIsAnyFlagEnabled().
Update What's New document for VK_KHR_sampler_ycbcr_conversion.
2020-06-14 19:15:39 -04:00
Bill Hollings
a8449ef764
Merge pull request #923 from billhollings/master
Fixes and consistency improvements to the recent VK_KHR_sampler_ycbcr_conversion extension.
2020-06-14 13:35:37 -04:00
Alexander Meißner
4a09c7aa20 Fixes 4 bugs in VK_EXT_inline_uniform_block:
descriptorCount measures bytes, array indices are offsets into the buffer,
missing isInline flag in bind, missing struct VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT.
2020-06-14 09:45:07 +02:00
Bill Hollings
4d69e0aecd Fix MVKImageViewPlane ignoring swizzle.
Allow MVKImageViewPlane MTLPixelFormat to be modified by swizzle settings.
Make MVKImageViewPlane a subclass of MVKBaseDeviceObject to streamline device access.
2020-06-13 22:08:58 -04:00
Bill Hollings
73eab172e0 Treat MVKImageMemoryBinding, MVKImagePlane, and MVKImageViewPlane
as subclasses of MVKBaseObject for lifecycles.

Remove use of unique_ptr to manage destruction of MVKImageMemoryBinding,
MVKImagePlane, and MVKImageViewPlane instances. Instead, call destroy()
on them during destruction of MVKImage and MVKImageView.
2020-06-13 20:18:06 -04:00
Bill Hollings
83bbd6e384 Fix use of needsHostReadSync().
MVKImageMemoryBinding::needsHostReadSync() use MVKPipelineBarrier.
Removed obsolete MVKResource::needsHostReadSync(), which was no longer being used.
2020-06-13 17:09:49 -04:00
Bill Hollings
06747095c5
Merge pull request #921 from Lichtso/VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES
Move VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES
2020-06-13 13:18:18 -04:00
Alexander Meißner
81dd248b36 Moves VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES
from VkPhysicalDeviceProperties2 to VkImageFormatProperties2.
2020-06-13 11:11:53 +02:00
Bill Hollings
8be219f428
Merge pull request #915 from billhollings/master
Restore the correct value for maxDrawIndexedIndexValue.
2020-06-11 17:58:35 -04:00