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
7a1533a4
Commit
7a1533a4
authored
Aug 26, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Replace VFLAG_PBO with resource->map_binding.
parent
c87901d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
volume.c
dlls/wined3d/volume.c
+6
-9
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-2
No files found.
dlls/wined3d/volume.c
View file @
7a1533a4
...
...
@@ -364,7 +364,7 @@ static void wined3d_volume_load_location(struct wined3d_volume *volume,
break
;
case
WINED3D_LOCATION_BUFFER
:
if
(
!
volume
->
pbo
||
!
(
volume
->
flags
&
WINED3D_VFLAG_PBO
)
)
if
(
!
volume
->
pbo
)
ERR
(
"Trying to load WINED3D_LOCATION_BUFFER without setting it up first.
\n
"
);
if
(
volume
->
locations
&
WINED3D_LOCATION_DISCARDED
)
...
...
@@ -627,7 +627,7 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume,
flags
=
wined3d_resource_sanitize_map_flags
(
&
volume
->
resource
,
flags
);
if
(
volume
->
flags
&
WINED3D_VFLAG_PBO
)
if
(
volume
->
resource
.
map_binding
==
WINED3D_LOCATION_BUFFER
)
{
context
=
context_acquire
(
device
,
NULL
);
gl_info
=
context
->
gl_info
;
...
...
@@ -723,11 +723,7 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume,
if
(
!
(
flags
&
(
WINED3D_MAP_NO_DIRTY_UPDATE
|
WINED3D_MAP_READONLY
)))
{
wined3d_texture_set_dirty
(
volume
->
container
);
if
(
volume
->
flags
&
WINED3D_VFLAG_PBO
)
wined3d_volume_invalidate_location
(
volume
,
~
WINED3D_LOCATION_BUFFER
);
else
wined3d_volume_invalidate_location
(
volume
,
~
WINED3D_LOCATION_SYSMEM
);
wined3d_volume_invalidate_location
(
volume
,
~
volume
->
resource
.
map_binding
);
}
volume
->
resource
.
map_count
++
;
...
...
@@ -753,7 +749,7 @@ HRESULT CDECL wined3d_volume_unmap(struct wined3d_volume *volume)
return
WINED3DERR_INVALIDCALL
;
}
if
(
volume
->
flags
&
WINED3D_VFLAG_PBO
)
if
(
volume
->
resource
.
map_binding
==
WINED3D_LOCATION_BUFFER
)
{
struct
wined3d_device
*
device
=
volume
->
resource
.
device
;
struct
wined3d_context
*
context
=
context_acquire
(
device
,
NULL
);
...
...
@@ -824,13 +820,14 @@ static HRESULT volume_init(struct wined3d_volume *volume, struct wined3d_texture
volume
->
texture_level
=
level
;
volume
->
locations
=
WINED3D_LOCATION_DISCARDED
;
volume
->
resource
.
map_binding
=
WINED3D_LOCATION_SYSMEM
;
if
(
desc
->
pool
==
WINED3D_POOL_DEFAULT
&&
desc
->
usage
&
WINED3DUSAGE_DYNAMIC
&&
gl_info
->
supported
[
ARB_PIXEL_BUFFER_OBJECT
]
&&
!
format
->
convert
)
{
wined3d_resource_free_sysmem
(
&
volume
->
resource
);
volume
->
flags
|=
WINED3D_VFLAG_PBO
;
volume
->
resource
.
map_binding
=
WINED3D_LOCATION_BUFFER
;
}
volume
->
container
=
container
;
...
...
dlls/wined3d/wined3d_private.h
View file @
7a1533a4
...
...
@@ -2172,8 +2172,7 @@ void wined3d_texture_set_swapchain(struct wined3d_texture *texture,
#define WINED3D_VFLAG_ALLOCATED 0x00000001
#define WINED3D_VFLAG_SRGB_ALLOCATED 0x00000002
#define WINED3D_VFLAG_PBO 0x00000004
#define WINED3D_VFLAG_CLIENT_STORAGE 0x00000008
#define WINED3D_VFLAG_CLIENT_STORAGE 0x00000004
#define WINED3D_LOCATION_DISCARDED 0x00000001
#define WINED3D_LOCATION_SYSMEM 0x00000002
...
...
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