Bug 39891 - D3D1X can't be compiled: cannot convert ‘pipe_resource*’ to ‘const pipe_resolve_info*’ in argument passing
Summary: D3D1X can't be compiled: cannot convert ‘pipe_resource*’ to ‘const pipe_resol...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: All All
: medium critical
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 21:59 UTC by Alexandre Demers
Modified: 2011-08-07 07:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.