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
1f9243c7
Commit
1f9243c7
authored
Sep 26, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add traces to filtering functions.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5472b8b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
surface.c
dlls/d3dx9_36/surface.c
+10
-0
texture.c
dlls/d3dx9_36/texture.c
+1
-3
No files found.
dlls/d3dx9_36/surface.c
View file @
1f9243c7
...
...
@@ -1619,6 +1619,11 @@ void convert_argb_pixels(const BYTE *src, UINT src_row_pitch, UINT src_slice_pit
UINT
min_width
,
min_height
,
min_depth
;
UINT
x
,
y
,
z
;
TRACE
(
"src %p, src_row_pitch %u, src_slice_pitch %u, src_size %p, src_format %p, dst %p, "
"dst_row_pitch %u, dst_slice_pitch %u, dst_size %p, dst_format %p, color_key 0x%08x, palette %p.
\n
"
,
src
,
src_row_pitch
,
src_slice_pitch
,
src_size
,
src_format
,
dst
,
dst_row_pitch
,
dst_slice_pitch
,
dst_size
,
dst_format
,
color_key
,
palette
);
ZeroMemory
(
channels
,
sizeof
(
channels
));
init_argb_conversion_info
(
src_format
,
dst_format
,
&
conv_info
);
...
...
@@ -1721,6 +1726,11 @@ void point_filter_argb_pixels(const BYTE *src, UINT src_row_pitch, UINT src_slic
DWORD
channels
[
4
];
UINT
x
,
y
,
z
;
TRACE
(
"src %p, src_row_pitch %u, src_slice_pitch %u, src_size %p, src_format %p, dst %p, "
"dst_row_pitch %u, dst_slice_pitch %u, dst_size %p, dst_format %p, color_key 0x%08x, palette %p.
\n
"
,
src
,
src_row_pitch
,
src_slice_pitch
,
src_size
,
src_format
,
dst
,
dst_row_pitch
,
dst_slice_pitch
,
dst_size
,
dst_format
,
color_key
,
palette
);
ZeroMemory
(
channels
,
sizeof
(
channels
));
init_argb_conversion_info
(
src_format
,
dst_format
,
&
conv_info
);
...
...
dlls/d3dx9_36/texture.c
View file @
1f9243c7
...
...
@@ -430,7 +430,6 @@ HRESULT WINAPI D3DXCheckCubeTextureRequirements(struct IDirect3DDevice9 *device,
if
(
!
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP
))
return
D3DERR_NOTAVAILABLE
;
/* ensure width/height is power of 2 */
if
((
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP_POW2
)
&&
(
!
is_pow2
(
s
)))
s
=
make_pow2
(
s
);
...
...
@@ -470,7 +469,6 @@ HRESULT WINAPI D3DXCheckVolumeTextureRequirements(struct IDirect3DDevice9 *devic
if
(
d
==
D3DX_DEFAULT
)
d
=
1
;
/* ensure width/height is power of 2 */
if
((
caps
.
TextureCaps
&
D3DPTEXTURECAPS_VOLUMEMAP_POW2
)
&&
(
!
is_pow2
(
w
)
||
!
is_pow2
(
h
)
||
!
is_pow2
(
d
)))
{
...
...
@@ -646,7 +644,7 @@ HRESULT WINAPI D3DXCreateTextureFromFileInMemoryEx(struct IDirect3DDevice9 *devi
skip_levels
=
0
;
}
/*
fix texture creation parameters
*/
/*
Fix up texture creation parameters.
*/
hr
=
D3DXCheckTextureRequirements
(
device
,
&
width
,
&
height
,
&
miplevels
,
usage
,
&
format
,
pool
);
if
(
FAILED
(
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