Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5e89689b
Commit
5e89689b
authored
Sep 23, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make format conversion functions work on volumes.
parent
bb172d2a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
surface.c
dlls/wined3d/surface.c
+2
-1
utils.c
dlls/wined3d/utils.c
+0
-0
volume.c
dlls/wined3d/volume.c
+3
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-1
No files found.
dlls/wined3d/surface.c
View file @
5e89689b
...
...
@@ -5524,7 +5524,8 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
context_release
(
context
);
return
E_OUTOFMEMORY
;
}
format
.
convert
(
surface
->
resource
.
allocatedMemory
,
mem
,
src_pitch
,
dst_pitch
,
width
,
height
);
format
.
convert
(
surface
->
resource
.
allocatedMemory
,
mem
,
src_pitch
,
src_pitch
*
height
,
dst_pitch
,
dst_pitch
*
height
,
width
,
height
,
1
);
format
.
byte_count
=
format
.
conv_byte_count
;
src_pitch
=
dst_pitch
;
}
...
...
dlls/wined3d/utils.c
View file @
5e89689b
This diff is collapsed.
Click to expand it.
dlls/wined3d/volume.c
View file @
5e89689b
...
...
@@ -104,7 +104,7 @@ void wined3d_volume_upload_data(struct wined3d_volume *volume, const struct wine
const
struct
wined3d_format
*
format
=
volume
->
resource
.
format
;
UINT
width
=
volume
->
resource
.
width
;
UINT
height
=
volume
->
resource
.
height
;
UINT
depth
=
volume
->
resource
.
depth
,
z
;
UINT
depth
=
volume
->
resource
.
depth
;
BYTE
*
mem
=
data
->
addr
;
TRACE
(
"volume %p, context %p, level %u, format %s (%#x).
\n
"
,
...
...
@@ -129,9 +129,8 @@ void wined3d_volume_upload_data(struct wined3d_volume *volume, const struct wine
wined3d_volume_get_pitch
(
volume
,
&
src_row_pitch
,
&
src_slice_pitch
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dst_slice_pitch
*
depth
);
for
(
z
=
0
;
z
<
depth
;
z
++
)
format
->
convert
(
data
->
addr
+
z
*
src_slice_pitch
,
mem
+
z
*
dst_slice_pitch
,
src_row_pitch
,
dst_row_pitch
,
width
,
height
);
format
->
convert
(
data
->
addr
,
mem
,
src_row_pitch
,
src_slice_pitch
,
dst_row_pitch
,
dst_slice_pitch
,
width
,
height
,
depth
);
}
if
(
data
->
buffer_object
)
...
...
dlls/wined3d/wined3d_private.h
View file @
5e89689b
...
...
@@ -2970,7 +2970,8 @@ struct wined3d_format
unsigned
int
flags
;
struct
wined3d_rational
height_scale
;
struct
color_fixup_desc
color_fixup
;
void
(
*
convert
)(
const
BYTE
*
src
,
BYTE
*
dst
,
UINT
src_pitch
,
UINT
dst_pitch
,
UINT
width
,
UINT
height
);
void
(
*
convert
)(
const
BYTE
*
src
,
BYTE
*
dst
,
UINT
src_row_pitch
,
UINT
src_slice_pitch
,
UINT
dst_row_pitch
,
UINT
dst_slice_pitch
,
UINT
width
,
UINT
height
,
UINT
depth
);
};
const
struct
wined3d_format
*
wined3d_get_format
(
const
struct
wined3d_gl_info
*
gl_info
,
...
...
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