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
f5ce9f63
Commit
f5ce9f63
authored
Nov 30, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use unsigned int for "refcount" variables.
parent
39058487
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
36 additions
and
37 deletions
+36
-37
buffer.c
dlls/wined3d/buffer.c
+2
-2
cs.c
dlls/wined3d/cs.c
+2
-2
device.c
dlls/wined3d/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+2
-2
palette.c
dlls/wined3d/palette.c
+2
-2
query.c
dlls/wined3d/query.c
+2
-2
sampler.c
dlls/wined3d/sampler.c
+2
-2
shader.c
dlls/wined3d/shader.c
+2
-2
state.c
dlls/wined3d/state.c
+6
-6
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+2
-2
texture.c
dlls/wined3d/texture.c
+2
-3
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+2
-2
view.c
dlls/wined3d/view.c
+6
-6
No files found.
dlls/wined3d/buffer.c
View file @
f5ce9f63
...
...
@@ -494,7 +494,7 @@ static inline unsigned int fixup_transformed_pos(struct wined3d_vec4 *p)
ULONG
CDECL
wined3d_buffer_incref
(
struct
wined3d_buffer
*
buffer
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
buffer
->
resource
.
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
buffer
->
resource
.
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
buffer
,
refcount
);
...
...
@@ -766,7 +766,7 @@ void wined3d_buffer_cleanup(struct wined3d_buffer *buffer)
ULONG
CDECL
wined3d_buffer_decref
(
struct
wined3d_buffer
*
buffer
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
buffer
->
resource
.
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
buffer
->
resource
.
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
buffer
,
refcount
);
...
...
dlls/wined3d/cs.c
View file @
f5ce9f63
...
...
@@ -4406,7 +4406,7 @@ static void wined3d_command_list_destroy_object(void *object)
ULONG
CDECL
wined3d_command_list_incref
(
struct
wined3d_command_list
*
list
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
list
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
list
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
list
,
refcount
);
...
...
@@ -4415,7 +4415,7 @@ ULONG CDECL wined3d_command_list_incref(struct wined3d_command_list *list)
ULONG
CDECL
wined3d_command_list_decref
(
struct
wined3d_command_list
*
list
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
list
->
refcount
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
list
->
refcount
);
struct
wined3d_device
*
device
=
list
->
device
;
const
struct
wined3d_cs_packet
*
packet
;
SIZE_T
i
,
offset
;
...
...
dlls/wined3d/device.c
View file @
f5ce9f63
...
...
@@ -163,7 +163,7 @@ void device_context_remove(struct wined3d_device *device, struct wined3d_context
ULONG
CDECL
wined3d_device_incref
(
struct
wined3d_device
*
device
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
device
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
device
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
device
,
refcount
);
...
...
@@ -253,7 +253,7 @@ void wined3d_device_cleanup(struct wined3d_device *device)
ULONG
CDECL
wined3d_device_decref
(
struct
wined3d_device
*
device
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
device
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
device
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
device
,
refcount
);
...
...
dlls/wined3d/directx.c
View file @
f5ce9f63
...
...
@@ -187,7 +187,7 @@ void wined3d_adapter_cleanup(struct wined3d_adapter *adapter)
ULONG
CDECL
wined3d_incref
(
struct
wined3d
*
wined3d
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
wined3d
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
wined3d
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
wined3d
,
refcount
);
...
...
@@ -196,7 +196,7 @@ ULONG CDECL wined3d_incref(struct wined3d *wined3d)
ULONG
CDECL
wined3d_decref
(
struct
wined3d
*
wined3d
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
wined3d
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
wined3d
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
wined3d
,
refcount
);
...
...
dlls/wined3d/palette.c
View file @
f5ce9f63
...
...
@@ -25,7 +25,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
ULONG
CDECL
wined3d_palette_incref
(
struct
wined3d_palette
*
palette
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
palette
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
palette
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
palette
,
refcount
);
...
...
@@ -41,7 +41,7 @@ static void wined3d_palette_destroy_object(void *object)
ULONG
CDECL
wined3d_palette_decref
(
struct
wined3d_palette
*
palette
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
palette
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
palette
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
palette
,
refcount
);
...
...
dlls/wined3d/query.c
View file @
f5ce9f63
...
...
@@ -410,7 +410,7 @@ HRESULT wined3d_fence_create(struct wined3d_device *device, struct wined3d_fence
ULONG
CDECL
wined3d_query_incref
(
struct
wined3d_query
*
query
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
query
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
query
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
query
,
refcount
);
...
...
@@ -429,7 +429,7 @@ static void wined3d_query_destroy_object(void *object)
ULONG
CDECL
wined3d_query_decref
(
struct
wined3d_query
*
query
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
query
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
query
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
query
,
refcount
);
...
...
dlls/wined3d/sampler.c
View file @
f5ce9f63
...
...
@@ -23,7 +23,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
ULONG
CDECL
wined3d_sampler_incref
(
struct
wined3d_sampler
*
sampler
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
sampler
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
sampler
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
sampler
,
refcount
);
...
...
@@ -32,7 +32,7 @@ ULONG CDECL wined3d_sampler_incref(struct wined3d_sampler *sampler)
ULONG
CDECL
wined3d_sampler_decref
(
struct
wined3d_sampler
*
sampler
)
{
ULONG
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
sampler
->
refcount
);
unsigned
int
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
sampler
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
sampler
,
refcount
);
...
...
dlls/wined3d/shader.c
View file @
f5ce9f63
...
...
@@ -3402,7 +3402,7 @@ static HRESULT shader_set_function(struct wined3d_shader *shader, struct wined3d
ULONG
CDECL
wined3d_shader_incref
(
struct
wined3d_shader
*
shader
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
shader
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
shader
,
refcount
);
...
...
@@ -3431,7 +3431,7 @@ static void wined3d_shader_destroy_object(void *object)
ULONG
CDECL
wined3d_shader_decref
(
struct
wined3d_shader
*
shader
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
shader
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
shader
,
refcount
);
...
...
dlls/wined3d/state.c
View file @
f5ce9f63
...
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
ULONG
CDECL
wined3d_blend_state_incref
(
struct
wined3d_blend_state
*
state
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
@@ -49,7 +49,7 @@ static void wined3d_blend_state_destroy_object(void *object)
ULONG
CDECL
wined3d_blend_state_decref
(
struct
wined3d_blend_state
*
state
)
{
ULONG
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
unsigned
int
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
struct
wined3d_device
*
device
=
state
->
device
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
@@ -108,7 +108,7 @@ HRESULT CDECL wined3d_blend_state_create(struct wined3d_device *device,
ULONG
CDECL
wined3d_depth_stencil_state_incref
(
struct
wined3d_depth_stencil_state
*
state
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
@@ -124,7 +124,7 @@ static void wined3d_depth_stencil_state_destroy_object(void *object)
ULONG
CDECL
wined3d_depth_stencil_state_decref
(
struct
wined3d_depth_stencil_state
*
state
)
{
ULONG
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
unsigned
int
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
struct
wined3d_device
*
device
=
state
->
device
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
@@ -195,7 +195,7 @@ HRESULT CDECL wined3d_depth_stencil_state_create(struct wined3d_device *device,
ULONG
CDECL
wined3d_rasterizer_state_incref
(
struct
wined3d_rasterizer_state
*
state
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
state
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
@@ -211,7 +211,7 @@ static void wined3d_rasterizer_state_destroy_object(void *object)
ULONG
CDECL
wined3d_rasterizer_state_decref
(
struct
wined3d_rasterizer_state
*
state
)
{
ULONG
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
unsigned
int
refcount
=
wined3d_atomic_decrement_mutex_lock
(
&
state
->
refcount
);
struct
wined3d_device
*
device
=
state
->
device
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
state
,
refcount
);
...
...
dlls/wined3d/stateblock.c
View file @
f5ce9f63
...
...
@@ -360,7 +360,7 @@ static void stateblock_init_lights(struct list *dst_map, const struct list *src_
ULONG
CDECL
wined3d_stateblock_incref
(
struct
wined3d_stateblock
*
stateblock
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
stateblock
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
stateblock
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
stateblock
,
refcount
);
...
...
@@ -577,7 +577,7 @@ void state_cleanup(struct wined3d_state *state)
ULONG
CDECL
wined3d_stateblock_decref
(
struct
wined3d_stateblock
*
stateblock
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
stateblock
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
stateblock
->
ref
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
stateblock
,
refcount
);
...
...
dlls/wined3d/swapchain.c
View file @
f5ce9f63
...
...
@@ -132,7 +132,7 @@ void wined3d_swapchain_vk_cleanup(struct wined3d_swapchain_vk *swapchain_vk)
ULONG
CDECL
wined3d_swapchain_incref
(
struct
wined3d_swapchain
*
swapchain
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
swapchain
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
swapchain
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
swapchain
,
refcount
);
...
...
@@ -141,7 +141,7 @@ ULONG CDECL wined3d_swapchain_incref(struct wined3d_swapchain *swapchain)
ULONG
CDECL
wined3d_swapchain_decref
(
struct
wined3d_swapchain
*
swapchain
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
swapchain
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
swapchain
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
swapchain
,
refcount
);
...
...
dlls/wined3d/texture.c
View file @
f5ce9f63
...
...
@@ -1509,7 +1509,7 @@ void wined3d_texture_gl_apply_sampler_desc(struct wined3d_texture_gl *texture_gl
ULONG
CDECL
wined3d_texture_incref
(
struct
wined3d_texture
*
texture
)
{
ULONG
refcount
;
unsigned
int
refcount
;
TRACE
(
"texture %p, swapchain %p.
\n
"
,
texture
,
texture
->
swapchain
);
...
...
@@ -1602,8 +1602,7 @@ static void wined3d_texture_cleanup_sync(struct wined3d_texture *texture)
ULONG
CDECL
wined3d_texture_decref
(
struct
wined3d_texture
*
texture
)
{
unsigned
int
i
,
sub_resource_count
;
ULONG
refcount
;
unsigned
int
i
,
sub_resource_count
,
refcount
;
TRACE
(
"texture %p, swapchain %p.
\n
"
,
texture
,
texture
->
swapchain
);
...
...
dlls/wined3d/vertexdeclaration.c
View file @
f5ce9f63
...
...
@@ -41,7 +41,7 @@ static void dump_wined3d_vertex_element(const struct wined3d_vertex_element *ele
ULONG
CDECL
wined3d_vertex_declaration_incref
(
struct
wined3d_vertex_declaration
*
declaration
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
declaration
->
ref
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
declaration
->
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
declaration
,
refcount
);
...
...
@@ -60,7 +60,7 @@ static void wined3d_vertex_declaration_destroy_object(void *object)
ULONG
CDECL
wined3d_vertex_declaration_decref
(
struct
wined3d_vertex_declaration
*
declaration
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
declaration
->
ref
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
declaration
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
declaration
,
refcount
);
...
...
dlls/wined3d/view.c
View file @
f5ce9f63
...
...
@@ -362,7 +362,7 @@ static void wined3d_view_load_location(struct wined3d_resource *resource,
ULONG
CDECL
wined3d_rendertarget_view_incref
(
struct
wined3d_rendertarget_view
*
view
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
@@ -379,7 +379,7 @@ void wined3d_rendertarget_view_cleanup(struct wined3d_rendertarget_view *view)
ULONG
CDECL
wined3d_rendertarget_view_decref
(
struct
wined3d_rendertarget_view
*
view
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
@@ -953,7 +953,7 @@ HRESULT CDECL wined3d_rendertarget_view_create_from_sub_resource(struct wined3d_
ULONG
CDECL
wined3d_shader_resource_view_incref
(
struct
wined3d_shader_resource_view
*
view
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
@@ -970,7 +970,7 @@ void wined3d_shader_resource_view_cleanup(struct wined3d_shader_resource_view *v
ULONG
CDECL
wined3d_shader_resource_view_decref
(
struct
wined3d_shader_resource_view
*
view
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
@@ -1478,7 +1478,7 @@ void wined3d_shader_resource_view_vk_generate_mipmap(struct wined3d_shader_resou
ULONG
CDECL
wined3d_unordered_access_view_incref
(
struct
wined3d_unordered_access_view
*
view
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedIncrement
(
&
view
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
@@ -1495,7 +1495,7 @@ void wined3d_unordered_access_view_cleanup(struct wined3d_unordered_access_view
ULONG
CDECL
wined3d_unordered_access_view_decref
(
struct
wined3d_unordered_access_view
*
view
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
unsigned
int
refcount
=
InterlockedDecrement
(
&
view
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
view
,
refcount
);
...
...
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