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
29c2bb54
Commit
29c2bb54
authored
Dec 01, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set resource's priority field's type as unsigned int.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
40179643
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
resource.c
dlls/wined3d/resource.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+2
-2
No files found.
dlls/wined3d/resource.c
View file @
29c2bb54
...
@@ -265,9 +265,9 @@ void resource_unload(struct wined3d_resource *resource)
...
@@ -265,9 +265,9 @@ void resource_unload(struct wined3d_resource *resource)
ERR
(
"Resource %p is being unloaded while mapped.
\n
"
,
resource
);
ERR
(
"Resource %p is being unloaded while mapped.
\n
"
,
resource
);
}
}
DWORD
CDECL
wined3d_resource_set_priority
(
struct
wined3d_resource
*
resource
,
DWORD
priority
)
unsigned
int
CDECL
wined3d_resource_set_priority
(
struct
wined3d_resource
*
resource
,
unsigned
int
priority
)
{
{
DWORD
prev
;
unsigned
int
prev
;
if
(
!
(
resource
->
usage
&
WINED3DUSAGE_MANAGED
))
if
(
!
(
resource
->
usage
&
WINED3DUSAGE_MANAGED
))
{
{
...
@@ -281,7 +281,7 @@ DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWO
...
@@ -281,7 +281,7 @@ DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWO
return
prev
;
return
prev
;
}
}
DWORD
CDECL
wined3d_resource_get_priority
(
const
struct
wined3d_resource
*
resource
)
unsigned
int
CDECL
wined3d_resource_get_priority
(
const
struct
wined3d_resource
*
resource
)
{
{
TRACE
(
"resource %p, returning %u.
\n
"
,
resource
,
resource
->
priority
);
TRACE
(
"resource %p, returning %u.
\n
"
,
resource
,
resource
->
priority
);
return
resource
->
priority
;
return
resource
->
priority
;
...
...
dlls/wined3d/wined3d_private.h
View file @
29c2bb54
...
@@ -4424,7 +4424,7 @@ struct wined3d_resource
...
@@ -4424,7 +4424,7 @@ struct wined3d_resource
UINT
height
;
UINT
height
;
UINT
depth
;
UINT
depth
;
UINT
size
;
UINT
size
;
DWORD
priority
;
unsigned
int
priority
;
void
*
heap_memory
;
void
*
heap_memory
;
uint32_t
pin_sysmem
:
1
;
uint32_t
pin_sysmem
:
1
;
...
...
include/wine/wined3d.h
View file @
29c2bb54
...
@@ -2675,12 +2675,12 @@ ULONG __cdecl wined3d_rasterizer_state_incref(struct wined3d_rasterizer_state *s
...
@@ -2675,12 +2675,12 @@ ULONG __cdecl wined3d_rasterizer_state_incref(struct wined3d_rasterizer_state *s
void
__cdecl
wined3d_resource_get_desc
(
const
struct
wined3d_resource
*
resource
,
void
__cdecl
wined3d_resource_get_desc
(
const
struct
wined3d_resource
*
resource
,
struct
wined3d_resource_desc
*
desc
);
struct
wined3d_resource_desc
*
desc
);
void
*
__cdecl
wined3d_resource_get_parent
(
const
struct
wined3d_resource
*
resource
);
void
*
__cdecl
wined3d_resource_get_parent
(
const
struct
wined3d_resource
*
resource
);
DWORD
__cdecl
wined3d_resource_get_priority
(
const
struct
wined3d_resource
*
resource
);
unsigned
int
__cdecl
wined3d_resource_get_priority
(
const
struct
wined3d_resource
*
resource
);
HRESULT
__cdecl
wined3d_resource_map
(
struct
wined3d_resource
*
resource
,
unsigned
int
sub_resource_idx
,
HRESULT
__cdecl
wined3d_resource_map
(
struct
wined3d_resource
*
resource
,
unsigned
int
sub_resource_idx
,
struct
wined3d_map_desc
*
map_desc
,
const
struct
wined3d_box
*
box
,
uint32_t
flags
);
struct
wined3d_map_desc
*
map_desc
,
const
struct
wined3d_box
*
box
,
uint32_t
flags
);
void
__cdecl
wined3d_resource_preload
(
struct
wined3d_resource
*
resource
);
void
__cdecl
wined3d_resource_preload
(
struct
wined3d_resource
*
resource
);
void
__cdecl
wined3d_resource_set_parent
(
struct
wined3d_resource
*
resource
,
void
*
parent
);
void
__cdecl
wined3d_resource_set_parent
(
struct
wined3d_resource
*
resource
,
void
*
parent
);
DWORD
__cdecl
wined3d_resource_set_priority
(
struct
wined3d_resource
*
resource
,
DWORD
priority
);
unsigned
int
__cdecl
wined3d_resource_set_priority
(
struct
wined3d_resource
*
resource
,
unsigned
int
priority
);
HRESULT
__cdecl
wined3d_resource_unmap
(
struct
wined3d_resource
*
resource
,
unsigned
int
sub_resource_idx
);
HRESULT
__cdecl
wined3d_resource_unmap
(
struct
wined3d_resource
*
resource
,
unsigned
int
sub_resource_idx
);
HRESULT
__cdecl
wined3d_rendertarget_view_create
(
const
struct
wined3d_view_desc
*
desc
,
HRESULT
__cdecl
wined3d_rendertarget_view_create
(
const
struct
wined3d_view_desc
*
desc
,
...
...
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