]> git.cworth.org Git - apitrace-tests/commitdiff
apps: Check d3dretrace snapshots.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 7 Dec 2012 10:49:13 +0000 (10:49 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 7 Dec 2012 10:49:13 +0000 (10:49 +0000)
app_driver.py
apps/d3d10/tri.ref.present.png [new file with mode: 0755]
apps/d3d10/tri.ref.txt
apps/d3d10_1/tri.ref.present.png [new file with mode: 0755]
apps/d3d10_1/tri.ref.txt
apps/d3d11/tri.ref.present.png [new file with mode: 0755]
apps/d3d11/tri.ref.txt
apps/d3d9/tri.ref.present.png [new file with mode: 0755]
apps/d3d9/tri.ref.txt

index 0680335180a3a421714d9a29198694bf4eeaf500..0e6cc37c65c5f68ab82b82b4e16cc70f358ebe6e 100755 (executable)
@@ -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 (executable)
index 0000000..aa290e4
Binary files /dev/null and b/apps/d3d10/tri.ref.present.png differ
index 66ab01931b1b73a88e53b62f8af5d4539017fdaa..95f8f1e4a91f0c2d589fbb691544e25f3558899e 100644 (file)
@@ -103,7 +103,7 @@ ID3D10Device::CreateRasterizerState(this = <pDevice>, pRasterizerDesc = &{FillMo
 ID3D10Device::RSSetState(this = <pDevice>, pRasterizerState = <pRasterizerState>)
 ID3D10Device::IASetPrimitiveTopology(this = <pDevice>, Topology = D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP)
 ID3D10Device::Draw(this = <pDevice>, VertexCount = 3, StartVertexLocation = 0)
-IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
+<present> IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
 ID3D10Device::IASetVertexBuffers(this = <pDevice>, StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0)
 ID3D10Buffer::Release(this = <pVertexBuffer>) = 0
 ID3D10Device::OMSetRenderTargets(this = <pDevice>, 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 (executable)
index 0000000..aa290e4
Binary files /dev/null and b/apps/d3d10_1/tri.ref.present.png differ
index aeae9bd542310c4e460c18e306279df419afd609..65344fa7a93ae134bfed689e1bd454f74725fef2 100644 (file)
@@ -103,7 +103,7 @@ ID3D10Device1::CreateRasterizerState(this = <pDevice>, pRasterizerDesc = &{FillM
 ID3D10Device1::RSSetState(this = <pDevice>, pRasterizerState = <pRasterizerState>)
 ID3D10Device1::IASetPrimitiveTopology(this = <pDevice>, Topology = D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP)
 ID3D10Device1::Draw(this = <pDevice>, VertexCount = 3, StartVertexLocation = 0)
-IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
+<present> IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
 ID3D10Device1::IASetVertexBuffers(this = <pDevice>, StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0)
 ID3D10Buffer::Release(this = <pVertexBuffer>) = 0
 ID3D10Device1::OMSetRenderTargets(this = <pDevice>, 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 (executable)
index 0000000..aa290e4
Binary files /dev/null and b/apps/d3d11/tri.ref.present.png differ
index f16d16fd14eab90edbe13273167b611cd63bfe4d..7d969b948fdbcfd58d92a0a1e0c3fc704ccbd70d 100644 (file)
@@ -97,8 +97,7 @@ ID3D11Device::CreateRasterizerState(this = <pDevice>, pRasterizerDesc = &{FillMo
 ID3D11DeviceContext::RSSetState(this = <pDeviceContext>, pRasterizerState = <pRasterizerState>)
 ID3D11DeviceContext::IASetPrimitiveTopology(this = <pDeviceContext>, Topology = D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP)
 ID3D11DeviceContext::Draw(this = <pDeviceContext>, VertexCount = 3, StartVertexLocation = 0)
-IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
-
+<present> IDXGISwapChain::Present(this = <pSwapChain>, SyncInterval = 0, Flags = 0x0) = S_OK
 ID3D11DeviceContext::IASetVertexBuffers(this = <pDeviceContext>, StartSlot = 0, NumBuffers = 1, ppVertexBuffers = &NULL, pStrides = &0, pOffsets = &0)
 ID3D11Buffer::Release(this = <pVertexBuffer>) = 0
 ID3D11DeviceContext::OMSetRenderTargets(this = <pDeviceContext>, 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 (executable)
index 0000000..f295795
Binary files /dev/null and b/apps/d3d9/tri.ref.present.png differ
index fe0ee166e3172a3a1823d0a43e87f05082810374..de8af241552541736052c7f20be444478d98493d 100644 (file)
@@ -8,6 +8,6 @@ IDirect3DDevice9::SetRenderState(this = <pDevice>, State = D3DRS_CULLMODE, Value
 IDirect3DDevice9::SetFVF(this = <pDevice>, FVF = D3DFVF_XYZ | D3DFVF_DIFFUSE) = D3D_OK
 IDirect3DDevice9::DrawPrimitiveUP(this = <pDevice>, PrimitiveType = D3DPT_TRIANGLELIST, PrimitiveCount = 1, pVertexStreamZeroData = blob(48), VertexStreamZeroStride = 16) = D3D_OK
 IDirect3DDevice9::EndScene(this = <pDevice>) = D3D_OK
-IDirect3DDevice9::Present(this = <pDevice>, pSourceRect = NULL, pDestRect = NULL, hDestWindowOverride = NULL, pDirtyRegion = NULL) = D3D_OK
+<present> IDirect3DDevice9::Present(this = <pDevice>, pSourceRect = NULL, pDestRect = NULL, hDestWindowOverride = NULL, pDirtyRegion = NULL) = D3D_OK
 IDirect3DDevice9::Release(this = <pDevice>) = 0
 IDirect3D9::Release(this = <pD3D>) = 0