CIFilter blurry on CALayer on Retina display

Originator:wil
Number:rdar://17740218 Date Originated:19-Jul-2014 11:06 PM
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
If I add a CIFilter to a CALayer like this...

filteredLayer.filters = @[filter];

...the filter works fine on a normal (1x) display. However, the same code running on a Retina (2x) display applies the filter, but the image is blurry.

Applying the CIFilter to the image directly (not to a view) does not result in any noticeable blurring.  

If I don't apply the filter, the layer renders at the correct resolution.

I don't think the blurriness is necessarily a 1x/2x issue – it appears clearer than 1x would look but blurrier than 2x. It looks kind of like a box blur or resampling error.

The contentsScale attribute seems to be set correctly (it's 2).

This is on OS X Mavericks, and the same thing happens on the Yosemite beta.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode Version 5.1.1 (5B1008)
OS X 10.9.4 (13E28)
(Also occurs on 10.10 beta 3)

Notes:


Configuration:
Any Retina display

Attachments:

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!