Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
46aa3faf
Commit
46aa3faf
authored
Apr 25, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae0bdd9a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
132 additions
and
133 deletions
+132
-133
Makefile.in
dlls/d3d11/Makefile.in
+0
-1
async.c
dlls/d3d11/async.c
+6
-6
buffer.c
dlls/d3d11/buffer.c
+4
-4
d3d11_main.c
dlls/d3d11/d3d11_main.c
+14
-14
device.c
dlls/d3d11/device.c
+38
-38
inputlayout.c
dlls/d3d11/inputlayout.c
+5
-5
shader.c
dlls/d3d11/shader.c
+23
-23
state.c
dlls/d3d11/state.c
+14
-14
texture.c
dlls/d3d11/texture.c
+12
-12
view.c
dlls/d3d11/view.c
+16
-16
No files found.
dlls/d3d11/Makefile.in
View file @
46aa3faf
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
d3d11.dll
IMPORTLIB
=
d3d11
IMPORTS
=
dxguid uuid dxgi wined3d
...
...
dlls/d3d11/async.c
View file @
46aa3faf
...
...
@@ -67,7 +67,7 @@ static ULONG STDMETHODCALLTYPE d3d11_query_AddRef(ID3D11Query *iface)
struct
d3d_query
*
query
=
impl_from_ID3D11Query
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
query
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
query
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
query
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -83,7 +83,7 @@ static ULONG STDMETHODCALLTYPE d3d11_query_Release(ID3D11Query *iface)
struct
d3d_query
*
query
=
impl_from_ID3D11Query
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
query
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
query
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
query
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -290,7 +290,7 @@ static void STDMETHODCALLTYPE d3d10_query_Begin(ID3D10Query *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
if
(
FAILED
(
hr
=
wined3d_query_issue
(
query
->
wined3d_query
,
WINED3DISSUE_BEGIN
)))
ERR
(
"Failed to issue query, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to issue query, hr %#
l
x.
\n
"
,
hr
);
}
static
void
STDMETHODCALLTYPE
d3d10_query_End
(
ID3D10Query
*
iface
)
...
...
@@ -301,7 +301,7 @@ static void STDMETHODCALLTYPE d3d10_query_End(ID3D10Query *iface)
TRACE
(
"iface %p.
\n
"
,
iface
);
if
(
FAILED
(
hr
=
wined3d_query_issue
(
query
->
wined3d_query
,
WINED3DISSUE_END
)))
ERR
(
"Failed to issue query, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to issue query, hr %#
l
x.
\n
"
,
hr
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_query_GetData
(
ID3D10Query
*
iface
,
void
*
data
,
UINT
data_size
,
UINT
flags
)
...
...
@@ -449,7 +449,7 @@ static HRESULT d3d_query_init(struct d3d_query *query, struct d3d_device *device
if
(
FAILED
(
hr
=
wined3d_query_create
(
device
->
wined3d_device
,
query_type_map
[
desc
->
Query
],
query
,
&
d3d_query_wined3d_parent_ops
,
&
query
->
wined3d_query
)))
{
WARN
(
"Failed to create wined3d query, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d query, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
query
->
private_store
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -493,7 +493,7 @@ HRESULT d3d_query_create(struct d3d_device *device, const D3D11_QUERY_DESC *desc
if
(
FAILED
(
hr
=
d3d_query_init
(
object
,
device
,
desc
,
predicate
)))
{
WARN
(
"Failed to initiali
ze predicate, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se predicate, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
dlls/d3d11/buffer.c
View file @
46aa3faf
...
...
@@ -64,7 +64,7 @@ static ULONG STDMETHODCALLTYPE d3d11_buffer_AddRef(ID3D11Buffer *iface)
struct
d3d_buffer
*
buffer
=
impl_from_ID3D11Buffer
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
buffer
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
buffer
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
buffer
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -80,7 +80,7 @@ static ULONG STDMETHODCALLTYPE d3d11_buffer_Release(ID3D11Buffer *iface)
struct
d3d_buffer
*
buffer
=
impl_from_ID3D11Buffer
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
buffer
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
buffer
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
buffer
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -452,7 +452,7 @@ static HRESULT d3d_buffer_init(struct d3d_buffer *buffer, struct d3d_device *dev
(
const
struct
wined3d_sub_resource_data
*
)
data
,
buffer
,
&
d3d_buffer_wined3d_parent_ops
,
&
buffer
->
wined3d_buffer
)))
{
WARN
(
"Failed to create wined3d buffer, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d buffer, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
buffer
->
private_store
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -475,7 +475,7 @@ HRESULT d3d_buffer_create(struct d3d_device *device, const D3D11_BUFFER_DESC *de
if
(
FAILED
(
hr
=
d3d_buffer_init
(
object
,
device
,
desc
,
data
)))
{
WARN
(
"Failed to initiali
ze buffer, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se buffer, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
dlls/d3d11/d3d11_main.c
View file @
46aa3faf
...
...
@@ -57,7 +57,7 @@ static HRESULT WINAPI layer_init(enum dxgi_device_layer_id id, DWORD *count, DWO
static
UINT
WINAPI
layer_get_size
(
enum
dxgi_device_layer_id
id
,
struct
layer_get_size_args
*
args
,
DWORD
unknown0
)
{
TRACE
(
"id %#x, args %p, unknown0 %#
x
\n
"
,
id
,
args
,
unknown0
);
TRACE
(
"id %#x, args %p, unknown0 %#
lx.
\n
"
,
id
,
args
,
unknown0
);
if
(
id
!=
DXGI_DEVICE_LAYER_D3D10_DEVICE
)
{
...
...
@@ -73,7 +73,7 @@ static HRESULT WINAPI layer_create(enum dxgi_device_layer_id id, void **layer_ba
{
struct
d3d_device
*
object
;
TRACE
(
"id %#x, layer_base %p, unknown0 %#
x, device_object %p, riid %s, device_layer %p
\n
"
,
TRACE
(
"id %#x, layer_base %p, unknown0 %#
lx, device_object %p, riid %s, device_layer %p.
\n
"
,
id
,
layer_base
,
unknown0
,
device_object
,
debugstr_guid
(
riid
),
device_layer
);
if
(
id
!=
DXGI_DEVICE_LAYER_D3D10_DEVICE
)
...
...
@@ -119,7 +119,7 @@ HRESULT WINAPI D3D11CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapte
hr
=
DXGID3D10CreateDevice
(
d3d11
,
factory
,
adapter
,
flags
,
feature_levels
,
levels
,
(
void
**
)
&
dxgi_device
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create device, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create device, returning %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -176,7 +176,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
hr
=
IDXGIAdapter_GetParent
(
adapter
,
&
IID_IDXGIFactory
,
(
void
**
)
&
factory
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get dxgi factory, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to get dxgi factory, returning %#
l
x.
\n
"
,
hr
);
return
hr
;
}
}
...
...
@@ -185,7 +185,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
hr
=
CreateDXGIFactory1
(
&
IID_IDXGIFactory
,
(
void
**
)
&
factory
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create dxgi factory, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create dxgi factory, returning %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -198,7 +198,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
hr
=
IDXGIFactory_EnumAdapters
(
factory
,
0
,
&
adapter
);
if
(
FAILED
(
hr
))
{
WARN
(
"No adapters found, returning %#x.
\n
"
,
hr
);
WARN
(
"No adapters found, returning %#
l
x.
\n
"
,
hr
);
IDXGIFactory_Release
(
factory
);
return
hr
;
}
...
...
@@ -221,7 +221,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
FreeLibrary
(
refrast
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create a software adapter, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a software adapter, returning %#
l
x.
\n
"
,
hr
);
IDXGIFactory_Release
(
factory
);
return
hr
;
}
...
...
@@ -239,7 +239,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
hr
=
IDXGIFactory_CreateSoftwareAdapter
(
factory
,
swrast
,
&
adapter
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create a software adapter, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a software adapter, returning %#
l
x.
\n
"
,
hr
);
IDXGIFactory_Release
(
factory
);
return
hr
;
}
...
...
@@ -263,7 +263,7 @@ static HRESULT d3d11_create_device(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver
IDXGIFactory_Release
(
factory
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create a device, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a device, returning %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -317,7 +317,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
if
(
FAILED
(
hr
=
d3d11_create_device
(
adapter
,
driver_type
,
swrast
,
flags
,
feature_levels
,
levels
,
sdk_version
,
&
device
,
obtained_feature_level
,
immediate_context
)))
{
WARN
(
"Failed to create a device, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a device, returning %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -325,7 +325,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
{
if
(
FAILED
(
hr
=
ID3D11Device_QueryInterface
(
device
,
&
IID_IDXGIDevice
,
(
void
**
)
&
dxgi_device
)))
{
ERR
(
"Failed to get a dxgi device from the d3d11 device, returning %#x.
\n
"
,
hr
);
ERR
(
"Failed to get a dxgi device from the d3d11 device, returning %#
l
x.
\n
"
,
hr
);
goto
cleanup
;
}
...
...
@@ -333,7 +333,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
IDXGIDevice_Release
(
dxgi_device
);
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to get the device adapter, returning %#x.
\n
"
,
hr
);
ERR
(
"Failed to get the device adapter, returning %#
l
x.
\n
"
,
hr
);
goto
cleanup
;
}
...
...
@@ -341,7 +341,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
IDXGIAdapter_Release
(
adapter
);
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to get the adapter factory, returning %#x.
\n
"
,
hr
);
ERR
(
"Failed to get the adapter factory, returning %#
l
x.
\n
"
,
hr
);
goto
cleanup
;
}
...
...
@@ -350,7 +350,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T
IDXGIFactory_Release
(
factory
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create a swapchain, returning %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a swapchain, returning %#
l
x.
\n
"
,
hr
);
goto
cleanup
;
}
...
...
dlls/d3d11/device.c
View file @
46aa3faf
...
...
@@ -99,7 +99,7 @@ static ULONG d3d_device_context_state_private_addref(struct d3d_device_context_s
{
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
private_refcount
);
TRACE
(
"%p increasing private refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing private refcount to %
l
u.
\n
"
,
state
,
refcount
);
return
refcount
;
}
...
...
@@ -109,7 +109,7 @@ static ULONG STDMETHODCALLTYPE d3d_device_context_state_AddRef(ID3DDeviceContext
struct
d3d_device_context_state
*
state
=
impl_from_ID3DDeviceContextState
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -143,7 +143,7 @@ static void d3d_device_context_state_private_release(struct d3d_device_context_s
struct
d3d_device
*
device
;
unsigned
int
i
;
TRACE
(
"%p decreasing private refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing private refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -169,7 +169,7 @@ static ULONG STDMETHODCALLTYPE d3d_device_context_state_Release(ID3DDeviceContex
struct
d3d_device_context_state
*
state
=
impl_from_ID3DDeviceContextState
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
state
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -361,7 +361,7 @@ static ULONG STDMETHODCALLTYPE d3d11_command_list_AddRef(ID3D11CommandList *ifac
struct
d3d11_command_list
*
list
=
impl_from_ID3D11CommandList
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
list
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
list
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
list
,
refcount
);
return
refcount
;
}
...
...
@@ -371,7 +371,7 @@ static ULONG STDMETHODCALLTYPE d3d11_command_list_Release(ID3D11CommandList *ifa
struct
d3d11_command_list
*
list
=
impl_from_ID3D11CommandList
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
list
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
list
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
list
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -504,7 +504,7 @@ static ULONG STDMETHODCALLTYPE d3d11_device_context_AddRef(ID3D11DeviceContext1
struct
d3d11_device_context
*
context
=
impl_from_ID3D11DeviceContext1
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
context
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
context
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
context
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -519,7 +519,7 @@ static ULONG STDMETHODCALLTYPE d3d11_device_context_Release(ID3D11DeviceContext1
struct
d3d11_device_context
*
context
=
impl_from_ID3D11DeviceContext1
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
context
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
context
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
context
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1416,7 +1416,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_ClearRenderTargetView(ID3D11D
if
(
FAILED
(
hr
=
wined3d_device_context_clear_rendertarget_view
(
context
->
wined3d_context
,
view
->
wined3d_view
,
NULL
,
WINED3DCLEAR_TARGET
,
&
color
,
0
.
0
f
,
0
)))
ERR
(
"Failed to clear view, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to clear view, hr %#
l
x.
\n
"
,
hr
);
}
static
void
STDMETHODCALLTYPE
d3d11_device_context_ClearUnorderedAccessViewUint
(
ID3D11DeviceContext1
*
iface
,
...
...
@@ -1465,7 +1465,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_ClearDepthStencilView(ID3D11D
if
(
FAILED
(
hr
=
wined3d_device_context_clear_rendertarget_view
(
context
->
wined3d_context
,
view
->
wined3d_view
,
NULL
,
wined3d_flags
,
NULL
,
depth
,
stencil
)))
ERR
(
"Failed to clear view, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to clear view, hr %#
l
x.
\n
"
,
hr
);
}
static
void
STDMETHODCALLTYPE
d3d11_device_context_GenerateMips
(
ID3D11DeviceContext1
*
iface
,
...
...
@@ -2706,7 +2706,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_context_FinishCommandList(ID3D11De
if
(
FAILED
(
hr
=
wined3d_deferred_context_record_command_list
(
context
->
wined3d_context
,
!!
restore
,
&
object
->
wined3d_list
)))
{
WARN
(
"Failed to record wined3d command list, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to record wined3d command list, hr %#
l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -3446,7 +3446,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateInputLayout(ID3D11Device2 *i
struct
d3d_input_layout
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, element_descs %p, element_count %u, shader_byte_code %p, shader_byte_code_length %
l
u, "
TRACE
(
"iface %p, element_descs %p, element_count %u, shader_byte_code %p, shader_byte_code_length %
I
u, "
"input_layout %p.
\n
"
,
iface
,
element_descs
,
element_count
,
shader_byte_code
,
shader_byte_code_length
,
input_layout
);
...
...
@@ -3466,7 +3466,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateVertexShader(ID3D11Device2 *
struct
d3d_vertex_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3487,7 +3487,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateGeometryShader(ID3D11Device2
struct
d3d_geometry_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3511,7 +3511,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateGeometryShaderWithStreamOutp
struct
d3d_geometry_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, so_entries %p, entry_count %u, "
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, so_entries %p, entry_count %u, "
"buffer_strides %p, strides_count %u, rasterizer_stream %u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
so_entries
,
entry_count
,
buffer_strides
,
strides_count
,
rasterizer_stream
,
class_linkage
,
shader
);
...
...
@@ -3538,7 +3538,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePixelShader(ID3D11Device2 *i
struct
d3d_pixel_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3559,7 +3559,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateHullShader(ID3D11Device2 *if
struct
d3d11_hull_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3580,7 +3580,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDomainShader(ID3D11Device2 *
struct
d3d11_domain_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3601,7 +3601,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateComputeShader(ID3D11Device2
struct
d3d11_compute_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, class_linkage %p, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
if
(
class_linkage
)
...
...
@@ -3774,7 +3774,7 @@ static HRESULT d3d11_deferred_context_create(struct d3d_device *device,
if
(
FAILED
(
hr
=
wined3d_deferred_context_create
(
device
->
wined3d_device
,
&
object
->
wined3d_context
)))
{
WARN
(
"Failed to create wined3d deferred context, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d deferred context, hr %#
l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -3869,7 +3869,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
continue
;
if
(
hr
!=
WINED3D_OK
)
{
WARN
(
"Failed to check device format support, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to check device format support, hr %#
l
x.
\n
"
,
hr
);
wined3d_mutex_unlock
();
return
E_FAIL
;
}
...
...
@@ -4018,7 +4018,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to get device caps, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -4040,7 +4040,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to get device caps, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -4062,7 +4062,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to get device caps, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -4129,7 +4129,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to get device caps, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -4389,7 +4389,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_OpenSharedResource1(ID3D11Device2
static
HRESULT
STDMETHODCALLTYPE
d3d11_device_OpenSharedResourceByName
(
ID3D11Device2
*
iface
,
const
WCHAR
*
name
,
DWORD
access
,
REFIID
iid
,
void
**
resource
)
{
FIXME
(
"iface %p, name %s, access %#x, iid %s, resource %p stub!
\n
"
,
iface
,
debugstr_w
(
name
),
access
,
FIXME
(
"iface %p, name %s, access %#
l
x, iid %s, resource %p stub!
\n
"
,
iface
,
debugstr_w
(
name
),
access
,
debugstr_guid
(
iid
),
resource
);
return
E_NOTIMPL
;
...
...
@@ -4541,7 +4541,7 @@ static ULONG STDMETHODCALLTYPE d3d_device_inner_AddRef(IUnknown *iface)
struct
d3d_device
*
device
=
impl_from_IUnknown
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
device
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
device
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
device
,
refcount
);
return
refcount
;
}
...
...
@@ -4552,7 +4552,7 @@ static ULONG STDMETHODCALLTYPE d3d_device_inner_Release(IUnknown *iface)
ULONG
refcount
=
InterlockedDecrement
(
&
device
->
refcount
);
unsigned
int
i
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
device
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
device
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -5159,7 +5159,7 @@ static void STDMETHODCALLTYPE d3d10_device_ClearRenderTargetView(ID3D10Device1 *
if
(
FAILED
(
hr
=
wined3d_device_context_clear_rendertarget_view
(
device
->
immediate_context
.
wined3d_context
,
view
->
wined3d_view
,
NULL
,
WINED3DCLEAR_TARGET
,
&
color
,
0
.
0
f
,
0
)))
ERR
(
"Failed to clear view, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to clear view, hr %#
l
x.
\n
"
,
hr
);
}
static
void
STDMETHODCALLTYPE
d3d10_device_ClearDepthStencilView
(
ID3D10Device1
*
iface
,
...
...
@@ -5180,7 +5180,7 @@ static void STDMETHODCALLTYPE d3d10_device_ClearDepthStencilView(ID3D10Device1 *
if
(
FAILED
(
hr
=
wined3d_device_context_clear_rendertarget_view
(
device
->
immediate_context
.
wined3d_context
,
view
->
wined3d_view
,
NULL
,
wined3d_flags
,
NULL
,
depth
,
stencil
)))
ERR
(
"Failed to clear view, hr %#x.
\n
"
,
hr
);
ERR
(
"Failed to clear view, hr %#
l
x.
\n
"
,
hr
);
}
static
void
STDMETHODCALLTYPE
d3d10_device_GenerateMips
(
ID3D10Device1
*
iface
,
...
...
@@ -6129,7 +6129,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateInputLayout(ID3D10Device1 *i
HRESULT
hr
;
TRACE
(
"iface %p, element_descs %p, element_count %u, shader_byte_code %p, "
"shader_byte_code_length %
lu, input_layout %p
\n
"
,
"shader_byte_code_length %
Iu, input_layout %p.
\n
"
,
iface
,
element_descs
,
element_count
,
shader_byte_code
,
shader_byte_code_length
,
input_layout
);
...
...
@@ -6149,7 +6149,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateVertexShader(ID3D10Device1 *
struct
d3d_vertex_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
shader
);
if
(
FAILED
(
hr
=
d3d_vertex_shader_create
(
device
,
byte_code
,
byte_code_length
,
&
object
)))
...
...
@@ -6167,7 +6167,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1
struct
d3d_geometry_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
shader
);
if
(
FAILED
(
hr
=
d3d_geometry_shader_create
(
device
,
byte_code
,
byte_code_length
,
...
...
@@ -6189,7 +6189,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShaderWithStreamOutp
unsigned
int
i
,
stride_count
=
1
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, output_stream_decls %p, "
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, output_stream_decls %p, "
"output_stream_decl_count %u, output_stream_stride %u, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
output_stream_decls
,
output_stream_decl_count
,
output_stream_stride
,
shader
);
...
...
@@ -6252,7 +6252,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreatePixelShader(ID3D10Device1 *i
struct
d3d_pixel_shader
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %
l
u, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %
I
u, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
shader
);
if
(
FAILED
(
hr
=
d3d_pixel_shader_create
(
device
,
byte_code
,
byte_code_length
,
&
object
)))
...
...
@@ -6808,7 +6808,7 @@ static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_devic
D3D11_TEXTURE2D_DESC
desc
;
HRESULT
hr
;
TRACE
(
"device_parent %p, container_parent %p, wined3d_desc %p, texture_flags %#x, wined3d_texture %p.
\n
"
,
TRACE
(
"device_parent %p, container_parent %p, wined3d_desc %p, texture_flags %#
l
x, wined3d_texture %p.
\n
"
,
device_parent
,
container_parent
,
wined3d_desc
,
texture_flags
,
wined3d_texture
);
desc
.
Width
=
wined3d_desc
->
width
;
...
...
@@ -6830,12 +6830,12 @@ static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_devic
}
if
(
texture_flags
)
FIXME
(
"Unhandled flags %#x.
\n
"
,
texture_flags
);
FIXME
(
"Unhandled flags %#
l
x.
\n
"
,
texture_flags
);
if
(
FAILED
(
hr
=
d3d11_device_CreateTexture2D
(
&
device
->
ID3D11Device2_iface
,
&
desc
,
NULL
,
&
texture_iface
)))
{
WARN
(
"Failed to create 2D texture, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create 2D texture, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
dlls/d3d11/inputlayout.c
View file @
46aa3faf
...
...
@@ -133,7 +133,7 @@ static ULONG STDMETHODCALLTYPE d3d11_input_layout_AddRef(ID3D11InputLayout *ifac
struct
d3d_input_layout
*
layout
=
impl_from_ID3D11InputLayout
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
layout
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
layout
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
layout
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -149,7 +149,7 @@ static ULONG STDMETHODCALLTYPE d3d11_input_layout_Release(ID3D11InputLayout *ifa
struct
d3d_input_layout
*
layout
=
impl_from_ID3D11InputLayout
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
layout
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
layout
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
layout
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -336,7 +336,7 @@ static HRESULT d3d_input_layout_init(struct d3d_input_layout *layout, struct d3d
if
(
FAILED
(
hr
=
d3d11_input_layout_to_wined3d_declaration
(
element_descs
,
element_count
,
shader_byte_code
,
shader_byte_code_length
,
&
wined3d_elements
)))
{
WARN
(
"Failed to create wined3d vertex declaration elements, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d vertex declaration elements, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
layout
->
private_store
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -347,7 +347,7 @@ static HRESULT d3d_input_layout_init(struct d3d_input_layout *layout, struct d3d
heap_free
(
wined3d_elements
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create wined3d vertex declaration, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d vertex declaration, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
layout
->
private_store
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -373,7 +373,7 @@ HRESULT d3d_input_layout_create(struct d3d_device *device,
if
(
FAILED
(
hr
=
d3d_input_layout_init
(
object
,
device
,
element_descs
,
element_count
,
shader_byte_code
,
shader_byte_code_length
)))
{
WARN
(
"Failed to initiali
ze input layout, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se input layout, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
dlls/d3d11/shader.c
View file @
46aa3faf
...
...
@@ -64,7 +64,7 @@ static ULONG STDMETHODCALLTYPE d3d11_vertex_shader_AddRef(ID3D11VertexShader *if
struct
d3d_vertex_shader
*
shader
=
impl_from_ID3D11VertexShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -80,7 +80,7 @@ static ULONG STDMETHODCALLTYPE d3d11_vertex_shader_Release(ID3D11VertexShader *i
struct
d3d_vertex_shader
*
shader
=
impl_from_ID3D11VertexShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -272,7 +272,7 @@ static HRESULT d3d_vertex_shader_init(struct d3d_vertex_shader *shader, struct d
if
(
FAILED
(
hr
=
wined3d_shader_create_vs
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d_vertex_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d vertex shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d vertex shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -295,7 +295,7 @@ HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_cod
if
(
FAILED
(
hr
=
d3d_vertex_shader_init
(
object
,
device
,
byte_code
,
byte_code_length
)))
{
WARN
(
"Failed to initiali
ze vertex shader, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se vertex shader, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -356,7 +356,7 @@ static ULONG STDMETHODCALLTYPE d3d11_hull_shader_AddRef(ID3D11HullShader *iface)
struct
d3d11_hull_shader
*
shader
=
impl_from_ID3D11HullShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -372,7 +372,7 @@ static ULONG STDMETHODCALLTYPE d3d11_hull_shader_Release(ID3D11HullShader *iface
struct
d3d11_hull_shader
*
shader
=
impl_from_ID3D11HullShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -469,7 +469,7 @@ static HRESULT d3d11_hull_shader_init(struct d3d11_hull_shader *shader, struct d
if
(
FAILED
(
hr
=
wined3d_shader_create_hs
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d11_hull_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d hull shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d hull shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -543,7 +543,7 @@ static ULONG STDMETHODCALLTYPE d3d11_domain_shader_AddRef(ID3D11DomainShader *if
struct
d3d11_domain_shader
*
shader
=
impl_from_ID3D11DomainShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -559,7 +559,7 @@ static ULONG STDMETHODCALLTYPE d3d11_domain_shader_Release(ID3D11DomainShader *i
struct
d3d11_domain_shader
*
shader
=
impl_from_ID3D11DomainShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -656,7 +656,7 @@ static HRESULT d3d11_domain_shader_init(struct d3d11_domain_shader *shader, stru
if
(
FAILED
(
hr
=
wined3d_shader_create_ds
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d11_domain_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d domain shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d domain shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -740,7 +740,7 @@ static ULONG STDMETHODCALLTYPE d3d11_geometry_shader_AddRef(ID3D11GeometryShader
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D11GeometryShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -756,7 +756,7 @@ static ULONG STDMETHODCALLTYPE d3d11_geometry_shader_Release(ID3D11GeometryShade
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D11GeometryShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1141,7 +1141,7 @@ static HRESULT d3d_geometry_shader_init(struct d3d_geometry_shader *shader,
if
(
FAILED
(
hr
=
wined3d_shader_create_gs
(
device
->
wined3d_device
,
&
desc
,
so_entries
?
&
so_desc
:
NULL
,
shader
,
&
d3d_geometry_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d geometry shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d geometry shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -1167,7 +1167,7 @@ HRESULT d3d_geometry_shader_create(struct d3d_device *device, const void *byte_c
if
(
FAILED
(
hr
=
d3d_geometry_shader_init
(
object
,
device
,
byte_code
,
byte_code_length
,
so_entries
,
so_entry_count
,
buffer_strides
,
buffer_stride_count
,
rasterizer_stream
)))
{
WARN
(
"Failed to initiali
ze geometry shader, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se geometry shader, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -1238,7 +1238,7 @@ static ULONG STDMETHODCALLTYPE d3d11_pixel_shader_AddRef(ID3D11PixelShader *ifac
struct
d3d_pixel_shader
*
shader
=
impl_from_ID3D11PixelShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1254,7 +1254,7 @@ static ULONG STDMETHODCALLTYPE d3d11_pixel_shader_Release(ID3D11PixelShader *ifa
struct
d3d_pixel_shader
*
shader
=
impl_from_ID3D11PixelShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1445,7 +1445,7 @@ static HRESULT d3d_pixel_shader_init(struct d3d_pixel_shader *shader, struct d3d
if
(
FAILED
(
hr
=
wined3d_shader_create_ps
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d_pixel_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d pixel shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d pixel shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -1468,7 +1468,7 @@ HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code
if
(
FAILED
(
hr
=
d3d_pixel_shader_init
(
object
,
device
,
byte_code
,
byte_code_length
)))
{
WARN
(
"Failed to initiali
ze pixel shader, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se pixel shader, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -1528,7 +1528,7 @@ static ULONG STDMETHODCALLTYPE d3d11_compute_shader_AddRef(ID3D11ComputeShader *
struct
d3d11_compute_shader
*
shader
=
impl_from_ID3D11ComputeShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1544,7 +1544,7 @@ static ULONG STDMETHODCALLTYPE d3d11_compute_shader_Release(ID3D11ComputeShader
struct
d3d11_compute_shader
*
shader
=
impl_from_ID3D11ComputeShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
shader
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1640,7 +1640,7 @@ static HRESULT d3d11_compute_shader_init(struct d3d11_compute_shader *shader, st
if
(
FAILED
(
hr
=
wined3d_shader_create_cs
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d11_compute_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
)))
{
WARN
(
"Failed to create wined3d compute shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d compute shader, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_mutex_unlock
();
return
E_INVALIDARG
;
...
...
@@ -1713,7 +1713,7 @@ static ULONG STDMETHODCALLTYPE d3d11_class_linkage_AddRef(ID3D11ClassLinkage *if
struct
d3d11_class_linkage
*
class_linkage
=
impl_from_ID3D11ClassLinkage
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
class_linkage
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
class_linkage
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
class_linkage
,
refcount
);
return
refcount
;
}
...
...
@@ -1723,7 +1723,7 @@ static ULONG STDMETHODCALLTYPE d3d11_class_linkage_Release(ID3D11ClassLinkage *i
struct
d3d11_class_linkage
*
class_linkage
=
impl_from_ID3D11ClassLinkage
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
class_linkage
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
class_linkage
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
class_linkage
,
refcount
);
if
(
!
refcount
)
{
...
...
dlls/d3d11/state.c
View file @
46aa3faf
...
...
@@ -59,7 +59,7 @@ static ULONG STDMETHODCALLTYPE d3d11_blend_state_AddRef(ID3D11BlendState *iface)
struct
d3d_blend_state
*
state
=
impl_from_ID3D11BlendState
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -75,7 +75,7 @@ static ULONG STDMETHODCALLTYPE d3d11_blend_state_Release(ID3D11BlendState *iface
struct
d3d_blend_state
*
state
=
impl_from_ID3D11BlendState
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
state
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -413,7 +413,7 @@ HRESULT d3d_blend_state_create(struct d3d_device *device, const D3D11_BLEND_DESC
if
(
FAILED
(
hr
=
wined3d_blend_state_create
(
device
->
wined3d_device
,
&
wined3d_desc
,
object
,
&
d3d_blend_state_wined3d_parent_ops
,
&
object
->
wined3d_state
)))
{
WARN
(
"Failed to create wined3d blend state, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d blend state, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
object
->
private_store
);
wine_rb_remove
(
&
device
->
blend_states
,
&
object
->
entry
);
heap_free
(
object
);
...
...
@@ -485,7 +485,7 @@ static ULONG STDMETHODCALLTYPE d3d11_depthstencil_state_AddRef(ID3D11DepthStenci
struct
d3d_depthstencil_state
*
state
=
impl_from_ID3D11DepthStencilState
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -501,7 +501,7 @@ static ULONG STDMETHODCALLTYPE d3d11_depthstencil_state_Release(ID3D11DepthStenc
struct
d3d_depthstencil_state
*
state
=
impl_from_ID3D11DepthStencilState
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
state
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -804,7 +804,7 @@ HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEP
if
(
FAILED
(
hr
=
wined3d_depth_stencil_state_create
(
device
->
wined3d_device
,
&
wined3d_desc
,
object
,
&
d3d_depthstencil_state_wined3d_parent_ops
,
&
object
->
wined3d_state
)))
{
WARN
(
"Failed to create wined3d depth/stencil state, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d depth/stencil state, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
object
->
private_store
);
wine_rb_remove
(
&
device
->
depthstencil_states
,
&
object
->
entry
);
heap_free
(
object
);
...
...
@@ -882,7 +882,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rasterizer_state_AddRef(ID3D11RasterizerSta
struct
d3d_rasterizer_state
*
state
=
impl_from_ID3D11RasterizerState1
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -898,7 +898,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rasterizer_state_Release(ID3D11RasterizerSt
struct
d3d_rasterizer_state
*
state
=
impl_from_ID3D11RasterizerState1
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
state
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1168,7 +1168,7 @@ static HRESULT d3d_rasterizer_state_init(struct d3d_rasterizer_state *state, str
if
(
FAILED
(
hr
=
wined3d_rasterizer_state_create
(
device
->
wined3d_device
,
&
wined3d_desc
,
state
,
&
d3d_rasterizer_state_wined3d_parent_ops
,
&
state
->
wined3d_state
)))
{
WARN
(
"Failed to create wined3d rasteri
zer state, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d rasteri
ser state, hr %#l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wine_rb_remove
(
&
device
->
rasterizer_states
,
&
state
->
entry
);
return
hr
;
...
...
@@ -1209,7 +1209,7 @@ HRESULT d3d_rasterizer_state_create(struct d3d_device *device, const D3D11_RASTE
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initiali
ze rasterizer state, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se rasterizer state, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -1280,7 +1280,7 @@ static ULONG STDMETHODCALLTYPE d3d11_sampler_state_AddRef(ID3D11SamplerState *if
struct
d3d_sampler_state
*
state
=
impl_from_ID3D11SamplerState
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1296,7 +1296,7 @@ static ULONG STDMETHODCALLTYPE d3d11_sampler_state_Release(ID3D11SamplerState *i
struct
d3d_sampler_state
*
state
=
impl_from_ID3D11SamplerState
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
state
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
state
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1572,7 +1572,7 @@ static HRESULT d3d_sampler_state_init(struct d3d_sampler_state *state, struct d3
if
(
FAILED
(
hr
=
wined3d_sampler_create
(
device
->
wined3d_device
,
&
wined3d_desc
,
state
,
&
d3d_sampler_wined3d_parent_ops
,
&
state
->
wined3d_sampler
)))
{
WARN
(
"Failed to create wined3d sampler, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d sampler, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wine_rb_remove
(
&
device
->
sampler_states
,
&
state
->
entry
);
return
hr
;
...
...
@@ -1627,7 +1627,7 @@ HRESULT d3d_sampler_state_create(struct d3d_device *device, const D3D11_SAMPLER_
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initiali
ze sampler state, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se sampler state, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
dlls/d3d11/texture.c
View file @
46aa3faf
...
...
@@ -71,7 +71,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture1d_AddRef(ID3D11Texture1D *iface)
struct
d3d_texture1d
*
texture
=
impl_from_ID3D11Texture1D
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
texture
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -87,7 +87,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture1d_Release(ID3D11Texture1D *iface)
struct
d3d_texture1d
*
texture
=
impl_from_ID3D11Texture1D
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
texture
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -463,7 +463,7 @@ HRESULT d3d_texture1d_create(struct d3d_device *device, const D3D11_TEXTURE1D_DE
desc
->
ArraySize
,
levels
,
flags
,
(
struct
wined3d_sub_resource_data
*
)
data
,
texture
,
&
d3d_texture1d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d texture, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
heap_free
(
texture
);
wined3d_mutex_unlock
();
...
...
@@ -490,7 +490,7 @@ HRESULT d3d_texture1d_create(struct d3d_device *device, const D3D11_TEXTURE1D_DE
IWineDXGIDevice_Release
(
wine_device
);
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to create DXGI surface, returning %#.x
\n
"
,
hr
);
ERR
(
"Failed to create DXGI surface, returning %#.
l
x
\n
"
,
hr
);
texture
->
dxgi_surface
=
NULL
;
wined3d_texture_decref
(
texture
->
wined3d_texture
);
wined3d_mutex_unlock
();
...
...
@@ -550,7 +550,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture2d_AddRef(ID3D11Texture2D *iface)
struct
d3d_texture2d
*
texture
=
impl_from_ID3D11Texture2D
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
texture
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -566,7 +566,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture2d_Release(ID3D11Texture2D *iface)
struct
d3d_texture2d
*
texture
=
impl_from_ID3D11Texture2D
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
texture
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1009,7 +1009,7 @@ HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DE
desc
->
ArraySize
,
levels
,
flags
,
(
struct
wined3d_sub_resource_data
*
)
data
,
texture
,
&
d3d_texture2d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d texture, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
heap_free
(
texture
);
wined3d_mutex_unlock
();
...
...
@@ -1037,7 +1037,7 @@ HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DE
IWineDXGIDevice_Release
(
wine_device
);
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to create DXGI surface, returning %#.x
\n
"
,
hr
);
ERR
(
"Failed to create DXGI surface, returning %#.
l
x
\n
"
,
hr
);
texture
->
dxgi_surface
=
NULL
;
wined3d_texture_decref
(
texture
->
wined3d_texture
);
wined3d_mutex_unlock
();
...
...
@@ -1096,7 +1096,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture3d_AddRef(ID3D11Texture3D *iface)
struct
d3d_texture3d
*
texture
=
impl_from_ID3D11Texture3D
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
texture
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1120,7 +1120,7 @@ static ULONG STDMETHODCALLTYPE d3d11_texture3d_Release(ID3D11Texture3D *iface)
struct
d3d_texture3d
*
texture
=
impl_from_ID3D11Texture3D
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
texture
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
texture
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
texture
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1458,7 +1458,7 @@ static HRESULT d3d_texture3d_init(struct d3d_texture3d *texture, struct d3d_devi
1
,
levels
,
flags
,
(
struct
wined3d_sub_resource_data
*
)
data
,
texture
,
&
d3d_texture3d_wined3d_parent_ops
,
&
texture
->
wined3d_texture
)))
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d texture, hr %#
l
x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
texture
->
private_store
);
wined3d_mutex_unlock
();
if
(
hr
==
WINED3DERR_INVALIDCALL
)
...
...
@@ -1484,7 +1484,7 @@ HRESULT d3d_texture3d_create(struct d3d_device *device, const D3D11_TEXTURE3D_DE
if
(
FAILED
(
hr
=
d3d_texture3d_init
(
object
,
device
,
desc
,
data
)))
{
WARN
(
"Failed to initiali
ze texture, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se texture, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
dlls/d3d11/view.c
View file @
46aa3faf
...
...
@@ -958,7 +958,7 @@ static ULONG STDMETHODCALLTYPE d3d11_depthstencil_view_AddRef(ID3D11DepthStencil
struct
d3d_depthstencil_view
*
view
=
impl_from_ID3D11DepthStencilView
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -974,7 +974,7 @@ static ULONG STDMETHODCALLTYPE d3d11_depthstencil_view_Release(ID3D11DepthStenci
struct
d3d_depthstencil_view
*
view
=
impl_from_ID3D11DepthStencilView
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1300,7 +1300,7 @@ static HRESULT d3d_depthstencil_view_init(struct d3d_depthstencil_view *view, st
view
,
&
d3d_depth_stencil_view_wined3d_parent_ops
,
&
view
->
wined3d_view
)))
{
wined3d_mutex_unlock
();
WARN
(
"Failed to create a wined3d rendertarget view, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a wined3d rendertarget view, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1323,7 +1323,7 @@ HRESULT d3d_depthstencil_view_create(struct d3d_device *device, ID3D11Resource *
if
(
FAILED
(
hr
=
d3d_depthstencil_view_init
(
object
,
device
,
resource
,
desc
)))
{
WARN
(
"Failed to initiali
ze depthstencil view, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se depth/stencil view, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -1396,7 +1396,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rendertarget_view_AddRef(ID3D11RenderTarget
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D11RenderTargetView
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1412,7 +1412,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rendertarget_view_Release(ID3D11RenderTarge
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D11RenderTargetView
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -1741,7 +1741,7 @@ static HRESULT d3d_rendertarget_view_init(struct d3d_rendertarget_view *view, st
view
,
&
d3d_render_target_view_wined3d_parent_ops
,
&
view
->
wined3d_view
)))
{
wined3d_mutex_unlock
();
WARN
(
"Failed to create a wined3d rendertarget view, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create a wined3d rendertarget view, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1764,7 +1764,7 @@ HRESULT d3d_rendertarget_view_create(struct d3d_device *device, ID3D11Resource *
if
(
FAILED
(
hr
=
d3d_rendertarget_view_init
(
object
,
device
,
resource
,
desc
)))
{
WARN
(
"Failed to initiali
ze rendertarget view, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se rendertarget view, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -1838,7 +1838,7 @@ static ULONG STDMETHODCALLTYPE d3d11_shader_resource_view_AddRef(ID3D11ShaderRes
struct
d3d_shader_resource_view
*
view
=
impl_from_ID3D11ShaderResourceView
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -1854,7 +1854,7 @@ static ULONG STDMETHODCALLTYPE d3d11_shader_resource_view_Release(ID3D11ShaderRe
struct
d3d_shader_resource_view
*
view
=
impl_from_ID3D11ShaderResourceView
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -2235,7 +2235,7 @@ static HRESULT d3d_shader_resource_view_init(struct d3d_shader_resource_view *vi
view
,
&
d3d_shader_resource_view_wined3d_parent_ops
,
&
view
->
wined3d_view
)))
{
wined3d_mutex_unlock
();
WARN
(
"Failed to create wined3d shader resource view, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d shader resource view, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -2258,7 +2258,7 @@ HRESULT d3d_shader_resource_view_create(struct d3d_device *device, ID3D11Resourc
if
(
FAILED
(
hr
=
d3d_shader_resource_view_init
(
object
,
device
,
resource
,
desc
)))
{
WARN
(
"Failed to initiali
ze shader resource view, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se shader resource view, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
@@ -2317,7 +2317,7 @@ static ULONG STDMETHODCALLTYPE d3d11_unordered_access_view_AddRef(ID3D11Unordere
struct
d3d11_unordered_access_view
*
view
=
impl_from_ID3D11UnorderedAccessView
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p increasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
refcount
==
1
)
{
...
...
@@ -2333,7 +2333,7 @@ static ULONG STDMETHODCALLTYPE d3d11_unordered_access_view_Release(ID3D11Unorder
struct
d3d11_unordered_access_view
*
view
=
impl_from_ID3D11UnorderedAccessView
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
TRACE
(
"%p decreasing refcount to %
l
u.
\n
"
,
view
,
refcount
);
if
(
!
refcount
)
{
...
...
@@ -2538,7 +2538,7 @@ static HRESULT d3d11_unordered_access_view_init(struct d3d11_unordered_access_vi
view
,
&
d3d11_unordered_access_view_wined3d_parent_ops
,
&
view
->
wined3d_view
)))
{
wined3d_mutex_unlock
();
WARN
(
"Failed to create wined3d unordered access view, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to create wined3d unordered access view, hr %#
l
x.
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -2561,7 +2561,7 @@ HRESULT d3d11_unordered_access_view_create(struct d3d_device *device, ID3D11Reso
if
(
FAILED
(
hr
=
d3d11_unordered_access_view_init
(
object
,
device
,
resource
,
desc
)))
{
WARN
(
"Failed to initiali
ze unordered access view, hr %#
x.
\n
"
,
hr
);
WARN
(
"Failed to initiali
se unordered access view, hr %#l
x.
\n
"
,
hr
);
heap_free
(
object
);
return
hr
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment