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
6121393d
Commit
6121393d
authored
Mar 24, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use the private store api for textures.
parent
f2b5bf26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
81 deletions
+9
-81
texture.c
dlls/d3d9/texture.c
+9
-81
No files found.
dlls/d3d9/texture.c
View file @
6121393d
...
@@ -115,52 +115,28 @@ static HRESULT WINAPI d3d9_texture_2d_SetPrivateData(IDirect3DTexture9 *iface,
...
@@ -115,52 +115,28 @@ static HRESULT WINAPI d3d9_texture_2d_SetPrivateData(IDirect3DTexture9 *iface,
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
wined3d_mutex_lock
();
return
d3d9_resource_set_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
,
flags
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_set_private_data
(
resource
,
guid
,
data
,
data_size
,
flags
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_2d_GetPrivateData
(
IDirect3DTexture9
*
iface
,
static
HRESULT
WINAPI
d3d9_texture_2d_GetPrivateData
(
IDirect3DTexture9
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
wined3d_mutex_lock
();
return
d3d9_resource_get_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_get_private_data
(
resource
,
guid
,
data
,
data_size
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_2d_FreePrivateData
(
IDirect3DTexture9
*
iface
,
REFGUID
guid
)
static
HRESULT
WINAPI
d3d9_texture_2d_FreePrivateData
(
IDirect3DTexture9
*
iface
,
REFGUID
guid
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
wined3d_mutex_lock
();
return
d3d9_resource_free_private_data
(
&
texture
->
resource
,
guid
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_free_private_data
(
resource
,
guid
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
DWORD
WINAPI
d3d9_texture_2d_SetPriority
(
IDirect3DTexture9
*
iface
,
DWORD
priority
)
static
DWORD
WINAPI
d3d9_texture_2d_SetPriority
(
IDirect3DTexture9
*
iface
,
DWORD
priority
)
...
@@ -528,52 +504,28 @@ static HRESULT WINAPI d3d9_texture_cube_SetPrivateData(IDirect3DCubeTexture9 *if
...
@@ -528,52 +504,28 @@ static HRESULT WINAPI d3d9_texture_cube_SetPrivateData(IDirect3DCubeTexture9 *if
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
wined3d_mutex_lock
();
return
d3d9_resource_set_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
,
flags
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_set_private_data
(
resource
,
guid
,
data
,
data_size
,
flags
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_cube_GetPrivateData
(
IDirect3DCubeTexture9
*
iface
,
static
HRESULT
WINAPI
d3d9_texture_cube_GetPrivateData
(
IDirect3DCubeTexture9
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
wined3d_mutex_lock
();
return
d3d9_resource_get_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_get_private_data
(
resource
,
guid
,
data
,
data_size
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_cube_FreePrivateData
(
IDirect3DCubeTexture9
*
iface
,
REFGUID
guid
)
static
HRESULT
WINAPI
d3d9_texture_cube_FreePrivateData
(
IDirect3DCubeTexture9
*
iface
,
REFGUID
guid
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DCubeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
wined3d_mutex_lock
();
return
d3d9_resource_free_private_data
(
&
texture
->
resource
,
guid
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_free_private_data
(
resource
,
guid
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
DWORD
WINAPI
d3d9_texture_cube_SetPriority
(
IDirect3DCubeTexture9
*
iface
,
DWORD
priority
)
static
DWORD
WINAPI
d3d9_texture_cube_SetPriority
(
IDirect3DCubeTexture9
*
iface
,
DWORD
priority
)
...
@@ -965,52 +917,28 @@ static HRESULT WINAPI d3d9_texture_3d_SetPrivateData(IDirect3DVolumeTexture9 *if
...
@@ -965,52 +917,28 @@ static HRESULT WINAPI d3d9_texture_3d_SetPrivateData(IDirect3DVolumeTexture9 *if
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
REFGUID
guid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
,
flags
);
wined3d_mutex_lock
();
return
d3d9_resource_set_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
,
flags
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_set_private_data
(
resource
,
guid
,
data
,
data_size
,
flags
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_3d_GetPrivateData
(
IDirect3DVolumeTexture9
*
iface
,
static
HRESULT
WINAPI
d3d9_texture_3d_GetPrivateData
(
IDirect3DVolumeTexture9
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
iface
,
debugstr_guid
(
guid
),
data
,
data_size
);
wined3d_mutex_lock
();
return
d3d9_resource_get_private_data
(
&
texture
->
resource
,
guid
,
data
,
data_size
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_get_private_data
(
resource
,
guid
,
data
,
data_size
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_texture_3d_FreePrivateData
(
IDirect3DVolumeTexture9
*
iface
,
REFGUID
guid
)
static
HRESULT
WINAPI
d3d9_texture_3d_FreePrivateData
(
IDirect3DVolumeTexture9
*
iface
,
REFGUID
guid
)
{
{
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
d3d9_texture
*
texture
=
impl_from_IDirect3DVolumeTexture9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
guid
));
wined3d_mutex_lock
();
return
d3d9_resource_free_private_data
(
&
texture
->
resource
,
guid
);
resource
=
wined3d_texture_get_resource
(
texture
->
wined3d_texture
);
hr
=
wined3d_resource_free_private_data
(
resource
,
guid
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
DWORD
WINAPI
d3d9_texture_3d_SetPriority
(
IDirect3DVolumeTexture9
*
iface
,
DWORD
priority
)
static
DWORD
WINAPI
d3d9_texture_3d_SetPriority
(
IDirect3DVolumeTexture9
*
iface
,
DWORD
priority
)
...
...
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