Open Bug 917356 Opened 11 years ago Updated 2 years ago

reftests/svg/clipPath-advanced-01.svg: A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API

Categories

(Core :: Graphics, defect)

x86_64
Windows 8
defect

Tracking

()

People

(Reporter: vlad, Unassigned)

Details

Loading the reftests/svg/clipPath-advanced-01.svg reftest results (Win8) in the following log:

REFTEST TEST-LOAD | file:///c:/proj/moz/mozilla-central/layout/reftests/svg/clipPath-advanced-01.svg | 8271 / 9908 (83%)
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - A DXGI surface of format DXGI_FORMAT_A8_UNORM is not supported in this API.
D2D DEBUG ERROR - This operation is not compatible with the pixel format of the bitmap.
D2D DEBUG WARNING - A Flush call by a render target failed [88982f80]. Tags [0x0, 0x0].
Error reported when trying to flush D2D rendertarget. Code: 2291675008
REFTEST TEST-PASS | file:///c:/proj/moz/mozilla-central/layout/reftests/svg/clipPath-advanced-01.svg | image comparison (==)

I'm somewhat surprised that the test passes.

This seems to happen in SourceSurfaceD2DTarget::GetBitmap.  mFormat is FORMAT_A8, so the D2D1_BITMAP_PROPERTIES has a format of A8_UNORM and ALPHA_MODE_PREMULTIPLIED.  The call to CreateSharedBitmap fails.

mTexture is a 64x64 DXGI_FORMAT_A8_UNORM texture.  I don't understand why this doesn't work, because the docs do say that A8_UNORM is valid.  But then there's this error: http://msdn.microsoft.com/en-ca/library/windows/desktop/jj835918%28v=vs.85%29.aspx
This is actually being hit by a whole pile of reftests.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.