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
ed96dd72
Commit
ed96dd72
authored
Sep 29, 2008
by
Kjell Rune Skaaraas
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement IWineD3DResourceImpl_GetPriority and…
wined3d: Implement IWineD3DResourceImpl_GetPriority and IWineD3DResourceImpl_SetPriority for resource management.
parent
af086800
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
device.c
dlls/wined3d/device.c
+1
-0
resource.c
dlls/wined3d/resource.c
+7
-5
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
ed96dd72
...
...
@@ -90,6 +90,7 @@ static void WINAPI IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3
object->resource.format = Format; \
object->resource.usage = Usage; \
object->resource.size = _size; \
object->resource.priority = 0; \
list_init(&object->resource.privateData); \
/* Check that we have enough video ram left */
\
if (Pool == WINED3DPOOL_DEFAULT) { \
...
...
dlls/wined3d/resource.c
View file @
ed96dd72
...
...
@@ -217,16 +217,18 @@ HRESULT WINAPI IWineD3DResourceImpl_FreePrivateData(IWineD3DResource *iface, REF
return
WINED3D_OK
;
}
/* Priority support is not implemented yet */
DWORD
WINAPI
IWineD3DResourceImpl_SetPriority
(
IWineD3DResource
*
iface
,
DWORD
PriorityNew
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
return
0
;
DWORD
PriorityOld
=
This
->
resource
.
priority
;
This
->
resource
.
priority
=
PriorityNew
;
TRACE
(
"(%p) : new priority %d, returning old priority %d
\n
"
,
This
,
PriorityNew
,
PriorityOld
);
return
PriorityOld
;
}
DWORD
WINAPI
IWineD3DResourceImpl_GetPriority
(
IWineD3DResource
*
iface
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
return
0
;
TRACE
(
"(%p) : returning %d
\n
"
,
This
,
This
->
resource
.
priority
);
return
This
->
resource
.
priority
;
}
/* Preloading of resources is not supported yet */
...
...
dlls/wined3d/wined3d_private.h
View file @
ed96dd72
...
...
@@ -1096,6 +1096,7 @@ typedef struct IWineD3DResourceClass
UINT
size
;
DWORD
usage
;
WINED3DFORMAT
format
;
DWORD
priority
;
BYTE
*
allocatedMemory
;
/* Pointer to the real data location */
BYTE
*
heapMemory
;
/* Pointer to the HeapAlloced block of memory */
struct
list
privateData
;
...
...
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