Bug 39891

Summary: D3D1X can't be compiled: cannot convert ‘pipe_resource*’ to ‘const pipe_resolve_info*’ in argument passing
Product: Mesa Reporter: Alexandre Demers <alexandre.f.demers>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alexandre Demers 2011-08-06 21:59:12 UTC
When compiling with d3d1x, I receive the following error:
In file included from d3d11.cpp:220:0:
d3d11_context.h: In member function ‘HRESULT GalliumD3D11DeviceContext<PtrTraits>::Map(ID3D11Resource*, unsigned int, D3D11_MAP, unsigned int, D3D11_MAPPED_SUBRESOURCE*) [with PtrTraits = nonatomic_device_child_ptr_traits, HRESULT = int, ID3D11Resource = ID3D11Resource, D3D11_MAP = D3D11_MAP, D3D11_MAPPED_SUBRESOURCE = D3D11_MAPPED_SUBRESOURCE]’:
d3d11.cpp:231:1:   instantiated from here
d3d11_context.h:1461:12: warning: unused variable ‘face’
d3d11_context.h: In member function ‘void GalliumD3D11DeviceContext<PtrTraits>::CopySubresourceRegion(ID3D11Resource*, unsigned int, unsigned int, unsigned int, unsigned int, ID3D11Resource*, unsigned int, const D3D11_BOX*) [with PtrTraits = nonatomic_device_child_ptr_traits, ID3D11Resource = ID3D11Resource, D3D11_BOX = D3D11_BOX]’:
d3d11.cpp:231:1:   instantiated from here
d3d11_context.h:1522:12: warning: unused variable ‘dst_face’
d3d11_context.h:1524:12: warning: unused variable ‘src_face’
d3d11_context.h: In member function ‘void GalliumD3D11DeviceContext<PtrTraits>::ResolveSubresource(ID3D11Resource*, unsigned int, ID3D11Resource*, unsigned int, DXGI_FORMAT) [with PtrTraits = nonatomic_device_child_ptr_traits, ID3D11Resource = ID3D11Resource, DXGI_FORMAT = DXGI_FORMAT]’:
d3d11.cpp:231:1:   instantiated from here
d3d11_context.h:1731:3: error: cannot convert ‘pipe_resource*’ to ‘const pipe_resolve_info*’ in argument passing
make[5]: *** [d3d11.o] Error 1



If needed, I could bisect. It popped out about 2 days ago and I'm compiling mostly daily.
Comment 1 Christoph Bumiller 2011-08-07 06:38:53 UTC
Fixed with commit 4dd3272df9f6d483cb3734c3b8c77e9c190b3773 - d3d1x: adapt to resource_resolve interface change.

Sorry, should have adapted everything when changing the interface right away ...
Comment 2 Alexandre Demers 2011-08-07 07:26:37 UTC
confirming that it fixed the problem. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.