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
ebcbda72
Commit
ebcbda72
authored
May 18, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Allow SYSTEMMEM textures and surfaces.
parent
566cdcf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
device.c
dlls/wined3d/device.c
+5
-7
directx.c
dlls/wined3d/directx.c
+6
-2
surface.c
dlls/wined3d/surface.c
+2
-2
No files found.
dlls/wined3d/device.c
View file @
ebcbda72
...
...
@@ -5231,11 +5231,9 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD Stage,
}
if
(
pTexture
!=
NULL
)
{
/* SetTexture isn't allowed on textures in WINED3DPOOL_SCRATCH; The same is
* the case for WINED3DPOOL_SYSTEMMEM textures unless WINED3DDEVCAPS_TEXTURESYSTEMMORY is set.
* We don't check the caps as GetDeviceCaps is inefficient and we don't set the cap anyway.
*/
if
(((
IWineD3DTextureImpl
*
)
pTexture
)
->
resource
.
pool
==
WINED3DPOOL_SCRATCH
||
((
IWineD3DTextureImpl
*
)
pTexture
)
->
resource
.
pool
==
WINED3DPOOL_SYSTEMMEM
)
{
/* SetTexture isn't allowed on textures in WINED3DPOOL_SCRATCH;
*/
if
(((
IWineD3DTextureImpl
*
)
pTexture
)
->
resource
.
pool
==
WINED3DPOOL_SCRATCH
)
{
WARN
(
"(%p) Attempt to set scratch texture rejected
\n
"
,
pTexture
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -6435,8 +6433,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurfa
DWORD
*
data
;
TRACE
(
"(%p) Colour fill Surface: %p rect: %p color: %ld
\n
"
,
This
,
pSurface
,
pRect
,
color
);
if
(
surface
->
resource
.
pool
!=
WINED3DPOOL_DEFAULT
)
{
FIXME
(
"call to colorfill with non WINED3DPOOL_DEFAULT surface
\n
"
);
if
(
surface
->
resource
.
pool
!=
WINED3DPOOL_DEFAULT
&&
surface
->
resource
.
pool
!=
WINED3DPOOL_SYSTEMMEM
)
{
FIXME
(
"call to colorfill with non WINED3DPOOL_DEFAULT
or WINED3DPOOL_SYSTEMMEM
surface
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
dlls/wined3d/directx.c
View file @
ebcbda72
...
...
@@ -1471,12 +1471,16 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
*
pCaps
->
CursorCaps
=
0
;
*
pCaps
->
DevCaps
=
WINED3DDEVCAPS_DRAWPRIMTLVERTEX
|
*
pCaps
->
DevCaps
=
WINED3DDEVCAPS_EXECUTESYSTEMMEMORY
|
WINED3DDEVCAPS_TLVERTEXSYSTEMMEMORY
|
WINED3DDEVCAPS_TLVERTEXVIDEOMEMORY
|
WINED3DDEVCAPS_DRAWPRIMTLVERTEX
|
WINED3DDEVCAPS_HWTRANSFORMANDLIGHT
|
WINED3DDEVCAPS_EXECUTEVIDEOMEMORY
|
WINED3DDEVCAPS_PUREDEVICE
|
WINED3DDEVCAPS_HWRASTERIZATION
|
WINED3DDEVCAPS_TEXTUREVIDEOMEMORY
;
WINED3DDEVCAPS_TEXTUREVIDEOMEMORY
|
WINED3DDEVCAPS_TEXTURESYSTEMMEMORY
;
*
pCaps
->
PrimitiveMiscCaps
=
D3DPMISCCAPS_CULLCCW
|
...
...
dlls/wined3d/surface.c
View file @
ebcbda72
...
...
@@ -1170,9 +1170,9 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
* In general never store scratch or system mem textures in the video ram. However it is allowed
* for system memory textures when WINED3DDEVCAPS_TEXTURESYSTEMMEMORY is set but it isn't right now.
*/
if
(
This
->
resource
.
pool
==
WINED3DPOOL_SCRATCH
||
This
->
resource
.
pool
==
WINED3DPOOL_SYSTEMMEM
)
if
(
This
->
resource
.
pool
==
WINED3DPOOL_SCRATCH
)
{
FIXME
(
"(%p) Operation not supported for scratch
or SYSTEMMEM
textures
\n
"
,
This
);
FIXME
(
"(%p) Operation not supported for scratch textures
\n
"
,
This
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
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