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
341db6d8
Commit
341db6d8
authored
Jul 16, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove wined3d_texture_set/get_priority.
parent
cf119337
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
28 deletions
+42
-28
texture.c
dlls/d3d8/texture.c
+18
-6
texture.c
dlls/d3d9/texture.c
+18
-6
surface.c
dlls/ddraw/surface.c
+6
-2
texture.c
dlls/wined3d/texture.c
+0
-10
wined3d.spec
dlls/wined3d/wined3d.spec
+0
-2
wined3d.h
include/wine/wined3d.h
+0
-2
No files found.
dlls/d3d8/texture.c
View file @
341db6d8
...
...
@@ -140,12 +140,14 @@ static HRESULT WINAPI d3d8_texture_2d_FreePrivateData(IDirect3DTexture8 *iface,
static
DWORD
WINAPI
d3d8_texture_2d_SetPriority
(
IDirect3DTexture8
*
iface
,
DWORD
priority
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DTexture8
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -154,12 +156,14 @@ static DWORD WINAPI d3d8_texture_2d_SetPriority(IDirect3DTexture8 *iface, DWORD
static
DWORD
WINAPI
d3d8_texture_2d_GetPriority
(
IDirect3DTexture8
*
iface
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DTexture8
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -486,12 +490,14 @@ static HRESULT WINAPI d3d8_texture_cube_FreePrivateData(IDirect3DCubeTexture8 *i
static
DWORD
WINAPI
d3d8_texture_cube_SetPriority
(
IDirect3DCubeTexture8
*
iface
,
DWORD
priority
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DCubeTexture8
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -500,12 +506,14 @@ static DWORD WINAPI d3d8_texture_cube_SetPriority(IDirect3DCubeTexture8 *iface,
static
DWORD
WINAPI
d3d8_texture_cube_GetPriority
(
IDirect3DCubeTexture8
*
iface
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DCubeTexture8
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -853,12 +861,14 @@ static HRESULT WINAPI d3d8_texture_3d_FreePrivateData(IDirect3DVolumeTexture8 *i
static
DWORD
WINAPI
d3d8_texture_3d_SetPriority
(
IDirect3DVolumeTexture8
*
iface
,
DWORD
priority
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DVolumeTexture8
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -867,12 +877,14 @@ static DWORD WINAPI d3d8_texture_3d_SetPriority(IDirect3DVolumeTexture8 *iface,
static
DWORD
WINAPI
d3d8_texture_3d_GetPriority
(
IDirect3DVolumeTexture8
*
iface
)
{
struct
d3d8_texture
*
texture
=
impl_from_IDirect3DVolumeTexture8
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
dlls/d3d9/texture.c
View file @
341db6d8
...
...
@@ -142,12 +142,14 @@ static HRESULT WINAPI d3d9_texture_2d_FreePrivateData(IDirect3DTexture9 *iface,
static
DWORD
WINAPI
d3d9_texture_2d_SetPriority
(
IDirect3DTexture9
*
iface
,
DWORD
priority
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -156,12 +158,14 @@ static DWORD WINAPI d3d9_texture_2d_SetPriority(IDirect3DTexture9 *iface, DWORD
static
DWORD
WINAPI
d3d9_texture_2d_GetPriority
(
IDirect3DTexture9
*
iface
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -531,12 +535,14 @@ static HRESULT WINAPI d3d9_texture_cube_FreePrivateData(IDirect3DCubeTexture9 *i
static
DWORD
WINAPI
d3d9_texture_cube_SetPriority
(
IDirect3DCubeTexture9
*
iface
,
DWORD
priority
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -545,12 +551,14 @@ static DWORD WINAPI d3d9_texture_cube_SetPriority(IDirect3DCubeTexture9 *iface,
static
DWORD
WINAPI
d3d9_texture_cube_GetPriority
(
IDirect3DCubeTexture9
*
iface
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -944,12 +952,14 @@ static HRESULT WINAPI d3d9_texture_3d_FreePrivateData(IDirect3DVolumeTexture9 *i
static
DWORD
WINAPI
d3d9_texture_3d_SetPriority
(
IDirect3DVolumeTexture9
*
iface
,
DWORD
priority
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_set_priority
(
texture
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_set_priority
(
resource
,
priority
);
wined3d_mutex_unlock
();
return
ret
;
...
...
@@ -958,12 +968,14 @@ static DWORD WINAPI d3d9_texture_3d_SetPriority(IDirect3DVolumeTexture9 *iface,
static
DWORD
WINAPI
d3d9_texture_3d_GetPriority
(
IDirect3DVolumeTexture9
*
iface
)
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
ret
=
wined3d_texture_get_priority
(
texture
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
ret
=
wined3d_resource_get_priority
(
resource
);
wined3d_mutex_unlock
();
return
ret
;
...
...
dlls/ddraw/surface.c
View file @
341db6d8
...
...
@@ -2234,6 +2234,7 @@ static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWO
struct
ddraw_surface
*
surface
=
impl_from_IDirectDrawSurface7
(
iface
);
DWORD
managed
=
DDSCAPS2_TEXTUREMANAGE
|
DDSCAPS2_D3DTEXTUREMANAGE
;
HRESULT
hr
;
struct
wined3d_resource
*
resource
;
TRACE
(
"iface %p, priority %u.
\n
"
,
iface
,
priority
);
...
...
@@ -2247,7 +2248,8 @@ static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWO
}
else
{
wined3d_texture_set_priority
(
surface
->
wined3d_texture
,
priority
);
resource
=
wined3d_texture_get_resource
(
surface
->
wined3d_texture
);
wined3d_resource_set_priority
(
resource
,
priority
);
hr
=
DD_OK
;
}
wined3d_mutex_unlock
();
...
...
@@ -2258,6 +2260,7 @@ static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWO
static
HRESULT
WINAPI
ddraw_surface7_GetPriority
(
IDirectDrawSurface7
*
iface
,
DWORD
*
priority
)
{
struct
ddraw_surface
*
surface
=
impl_from_IDirectDrawSurface7
(
iface
);
const
struct
wined3d_resource
*
resource
;
DWORD
managed
=
DDSCAPS2_TEXTUREMANAGE
|
DDSCAPS2_D3DTEXTUREMANAGE
;
HRESULT
hr
;
...
...
@@ -2276,7 +2279,8 @@ static HRESULT WINAPI ddraw_surface7_GetPriority(IDirectDrawSurface7 *iface, DWO
}
else
{
*
priority
=
wined3d_texture_get_priority
(
surface
->
wined3d_texture
);
resource
=
wined3d_texture_get_resource
(
surface
->
wined3d_texture
);
*
priority
=
wined3d_resource_get_priority
(
resource
);
hr
=
DD_OK
;
}
wined3d_mutex_unlock
();
...
...
dlls/wined3d/texture.c
View file @
341db6d8
...
...
@@ -506,16 +506,6 @@ struct wined3d_resource * CDECL wined3d_texture_get_resource(struct wined3d_text
return
&
texture
->
resource
;
}
DWORD
CDECL
wined3d_texture_set_priority
(
struct
wined3d_texture
*
texture
,
DWORD
priority
)
{
return
wined3d_resource_set_priority
(
&
texture
->
resource
,
priority
);
}
DWORD
CDECL
wined3d_texture_get_priority
(
const
struct
wined3d_texture
*
texture
)
{
return
wined3d_resource_get_priority
(
&
texture
->
resource
);
}
/* Context activation is done by the caller */
void
wined3d_texture_load
(
struct
wined3d_texture
*
texture
,
struct
wined3d_context
*
context
,
BOOL
srgb
)
...
...
dlls/wined3d/wined3d.spec
View file @
341db6d8
...
...
@@ -249,7 +249,6 @@
@ cdecl wined3d_texture_get_level_count(ptr)
@ cdecl wined3d_texture_get_lod(ptr)
@ cdecl wined3d_texture_get_parent(ptr)
@ cdecl wined3d_texture_get_priority(ptr)
@ cdecl wined3d_texture_get_resource(ptr)
@ cdecl wined3d_texture_get_sub_resource(ptr long)
@ cdecl wined3d_texture_incref(ptr)
...
...
@@ -257,7 +256,6 @@
@ cdecl wined3d_texture_set_autogen_filter_type(ptr long)
@ cdecl wined3d_texture_set_color_key(ptr long ptr)
@ cdecl wined3d_texture_set_lod(ptr long)
@ cdecl wined3d_texture_set_priority(ptr long)
@ cdecl wined3d_vertex_declaration_create(ptr ptr long ptr ptr ptr)
@ cdecl wined3d_vertex_declaration_create_from_fvf(ptr long ptr ptr ptr)
...
...
include/wine/wined3d.h
View file @
341db6d8
...
...
@@ -2460,7 +2460,6 @@ enum wined3d_texture_filter_type __cdecl wined3d_texture_get_autogen_filter_type
DWORD
__cdecl
wined3d_texture_get_level_count
(
const
struct
wined3d_texture
*
texture
);
DWORD
__cdecl
wined3d_texture_get_lod
(
const
struct
wined3d_texture
*
texture
);
void
*
__cdecl
wined3d_texture_get_parent
(
const
struct
wined3d_texture
*
texture
);
DWORD
__cdecl
wined3d_texture_get_priority
(
const
struct
wined3d_texture
*
texture
);
struct
wined3d_resource
*
__cdecl
wined3d_texture_get_resource
(
struct
wined3d_texture
*
texture
);
struct
wined3d_resource
*
__cdecl
wined3d_texture_get_sub_resource
(
struct
wined3d_texture
*
texture
,
UINT
sub_resource_idx
);
...
...
@@ -2471,7 +2470,6 @@ HRESULT __cdecl wined3d_texture_set_autogen_filter_type(struct wined3d_texture *
HRESULT
__cdecl
wined3d_texture_set_color_key
(
struct
wined3d_texture
*
texture
,
DWORD
flags
,
const
struct
wined3d_color_key
*
color_key
);
DWORD
__cdecl
wined3d_texture_set_lod
(
struct
wined3d_texture
*
texture
,
DWORD
lod
);
DWORD
__cdecl
wined3d_texture_set_priority
(
struct
wined3d_texture
*
texture
,
DWORD
priority
);
HRESULT
__cdecl
wined3d_vertex_declaration_create
(
struct
wined3d_device
*
device
,
const
struct
wined3d_vertex_element
*
elements
,
UINT
element_count
,
void
*
parent
,
...
...
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