From: José Fonseca Date: Fri, 7 Dec 2012 10:49:13 +0000 (+0000) Subject: apps: Check d3dretrace snapshots. X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=commitdiff_plain;h=700b1cef4ba8cc818d9b9080f368f64c392513ec apps: Check d3dretrace snapshots. --- diff --git a/app_driver.py b/app_driver.py index 0680335..0e6cc37 100755 --- a/app_driver.py +++ b/app_driver.py @@ -317,9 +317,9 @@ class AppDriver(Driver): from PIL import Image state = self.getState(callNo) if self.doubleBuffer: - attachments = ['GL_BACK', 'GL_BACK_LEFT', 'GL_BACK_RIGHT', 'GL_COLOR_ATTACHMENT0'] + attachments = ['GL_BACK', 'GL_BACK_LEFT', 'GL_BACK_RIGHT', 'GL_COLOR_ATTACHMENT0', 'RENDER_TARGET_0'] else: - attachments = ['GL_FRONT', 'GL_FRONT_LEFT', 'GL_FRONT_RIGHT', 'GL_COLOR_ATTACHMENT0'] + attachments = ['GL_FRONT', 'GL_FRONT_LEFT', 'GL_FRONT_RIGHT', 'GL_COLOR_ATTACHMENT0', 'RENDER_TARGET_0'] imageObj = self.getFramebufferAttachment(state, attachments) data = imageObj['__data__'] stream = StringIO(base64.b64decode(data)) diff --git a/apps/d3d10/tri.ref.present.png b/apps/d3d10/tri.ref.present.png new file mode 100755 index 0000000..aa290e4 Binary files /dev/null and b/apps/d3d10/tri.ref.present.png differ diff --git a/apps/d3d10/tri.ref.txt b/apps/d3d10/tri.ref.txt index 66ab019..95f8f1e 100644 --- a/apps/d3d10/tri.ref.txt +++ b/apps/d3d10/tri.ref.txt @@ -103,7 +103,7 @@ ID3D10Device::CreateRasterizerState(this = , pRasterizerDesc = &{FillMo ID3D10Device::RSSetState(this = , pRasterizerState = ) ID3D10Device::IASetPrimitiveTopology(this = , Topology = D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP) ID3D10Device::Draw(this = , VertexCount = 3, StartVertexLocation = 0) -IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK + IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK ID3D10Device::IASetVertexBuffers(this = , StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0) ID3D10Buffer::Release(this = ) = 0 ID3D10Device::OMSetRenderTargets(this = , NumViews = 0, ppRenderTargetViews = NULL, pDepthStencilView = NULL) diff --git a/apps/d3d10_1/tri.ref.present.png b/apps/d3d10_1/tri.ref.present.png new file mode 100755 index 0000000..aa290e4 Binary files /dev/null and b/apps/d3d10_1/tri.ref.present.png differ diff --git a/apps/d3d10_1/tri.ref.txt b/apps/d3d10_1/tri.ref.txt index aeae9bd..65344fa 100644 --- a/apps/d3d10_1/tri.ref.txt +++ b/apps/d3d10_1/tri.ref.txt @@ -103,7 +103,7 @@ ID3D10Device1::CreateRasterizerState(this = , pRasterizerDesc = &{FillM ID3D10Device1::RSSetState(this = , pRasterizerState = ) ID3D10Device1::IASetPrimitiveTopology(this = , Topology = D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP) ID3D10Device1::Draw(this = , VertexCount = 3, StartVertexLocation = 0) -IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK + IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK ID3D10Device1::IASetVertexBuffers(this = , StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0) ID3D10Buffer::Release(this = ) = 0 ID3D10Device1::OMSetRenderTargets(this = , NumViews = 0, ppRenderTargetViews = NULL, pDepthStencilView = NULL) diff --git a/apps/d3d11/tri.ref.present.png b/apps/d3d11/tri.ref.present.png new file mode 100755 index 0000000..aa290e4 Binary files /dev/null and b/apps/d3d11/tri.ref.present.png differ diff --git a/apps/d3d11/tri.ref.txt b/apps/d3d11/tri.ref.txt index f16d16f..7d969b9 100644 --- a/apps/d3d11/tri.ref.txt +++ b/apps/d3d11/tri.ref.txt @@ -97,8 +97,7 @@ ID3D11Device::CreateRasterizerState(this = , pRasterizerDesc = &{FillMo ID3D11DeviceContext::RSSetState(this = , pRasterizerState = ) ID3D11DeviceContext::IASetPrimitiveTopology(this = , Topology = D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP) ID3D11DeviceContext::Draw(this = , VertexCount = 3, StartVertexLocation = 0) -IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK - + IDXGISwapChain::Present(this = , SyncInterval = 0, Flags = 0x0) = S_OK ID3D11DeviceContext::IASetVertexBuffers(this = , StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0) ID3D11Buffer::Release(this = ) = 0 ID3D11DeviceContext::OMSetRenderTargets(this = , NumViews = 0, ppRenderTargetViews = NULL, pDepthStencilView = NULL) diff --git a/apps/d3d9/tri.ref.present.png b/apps/d3d9/tri.ref.present.png new file mode 100755 index 0000000..f295795 Binary files /dev/null and b/apps/d3d9/tri.ref.present.png differ diff --git a/apps/d3d9/tri.ref.txt b/apps/d3d9/tri.ref.txt index fe0ee16..de8af24 100644 --- a/apps/d3d9/tri.ref.txt +++ b/apps/d3d9/tri.ref.txt @@ -8,6 +8,6 @@ IDirect3DDevice9::SetRenderState(this = , State = D3DRS_CULLMODE, Value IDirect3DDevice9::SetFVF(this = , FVF = D3DFVF_XYZ | D3DFVF_DIFFUSE) = D3D_OK IDirect3DDevice9::DrawPrimitiveUP(this = , PrimitiveType = D3DPT_TRIANGLELIST, PrimitiveCount = 1, pVertexStreamZeroData = blob(48), VertexStreamZeroStride = 16) = D3D_OK IDirect3DDevice9::EndScene(this = ) = D3D_OK -IDirect3DDevice9::Present(this = , pSourceRect = NULL, pDestRect = NULL, hDestWindowOverride = NULL, pDirtyRegion = NULL) = D3D_OK + IDirect3DDevice9::Present(this = , pSourceRect = NULL, pDestRect = NULL, hDestWindowOverride = NULL, pDirtyRegion = NULL) = D3D_OK IDirect3DDevice9::Release(this = ) = 0 IDirect3D9::Release(this = ) = 0