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
df3902e6
Commit
df3902e6
authored
May 18, 2006
by
Phil Costin
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Trace output corrections and cleanups.
parent
b564ef5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
device.c
dlls/wined3d/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+8
-8
No files found.
dlls/wined3d/device.c
View file @
df3902e6
...
...
@@ -1969,11 +1969,11 @@ UINT WINAPI IWineD3DDeviceImpl_GetAvailableTextureMem(IWineD3DDevice *iface) {
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
BOOL
showfixmes
=
TRUE
;
if
(
showfixmes
)
{
FIXME
(
"(%p) : stub, emulating %dM
ib for now, returning %dMib
\n
"
,
This
,
(
emulated_textureram
/
(
1024
*
1024
)),
FIXME
(
"(%p) : stub, emulating %dM
B for now, returning %dMB
\n
"
,
This
,
(
emulated_textureram
/
(
1024
*
1024
)),
((
emulated_textureram
-
wineD3DGlobalStatistics
->
glsurfaceram
)
/
(
1024
*
1024
)));
showfixmes
=
FALSE
;
}
TRACE
(
"(%p) : emulating %dM
ib for now, returning %dMib
\n
"
,
This
,
(
emulated_textureram
/
(
1024
*
1024
)),
TRACE
(
"(%p) : emulating %dM
B for now, returning %dMB
\n
"
,
This
,
(
emulated_textureram
/
(
1024
*
1024
)),
((
emulated_textureram
-
wineD3DGlobalStatistics
->
glsurfaceram
)
/
(
1024
*
1024
)));
/* videomemory is simulated videomemory + AGP memory left */
return
(
emulated_textureram
-
wineD3DGlobalStatistics
->
glsurfaceram
);
...
...
dlls/wined3d/directx.c
View file @
df3902e6
...
...
@@ -1680,17 +1680,17 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
if
(
wined3d_settings
.
vs_mode
==
VS_HW
&&
GL_SUPPORT
(
ARB_SHADING_LANGUAGE_100
)
&&
wined3d_settings
.
glslRequested
&&
DeviceType
!=
WINED3DDEVTYPE_REF
)
{
*
pCaps
->
VertexShaderVersion
=
D3DVS_VERSION
(
3
,
0
);
TRACE_
(
d3d_caps
)(
"Hardware
Vertex Shaders
versions 2.0+ enabled
\n
"
);
TRACE_
(
d3d_caps
)(
"Hardware
vertex shader
versions 2.0+ enabled
\n
"
);
}
else
if
(
wined3d_settings
.
vs_mode
==
VS_HW
&&
GL_SUPPORT
(
ARB_VERTEX_PROGRAM
)
&&
DeviceType
!=
WINED3DDEVTYPE_REF
)
{
*
pCaps
->
VertexShaderVersion
=
D3DVS_VERSION
(
1
,
1
);
TRACE_
(
d3d_caps
)(
"Hardware
Vertex S
hader version 1.1 enabled
\n
"
);
TRACE_
(
d3d_caps
)(
"Hardware
vertex s
hader version 1.1 enabled
\n
"
);
}
else
if
(
wined3d_settings
.
vs_mode
==
VS_SW
||
DeviceType
==
WINED3DDEVTYPE_REF
)
{
/* FIXME: Change the following line (when needed) to reflect the reported software vertex shader version implemented */
*
pCaps
->
VertexShaderVersion
=
D3DVS_VERSION
(
1
,
1
);
TRACE_
(
d3d_caps
)(
"Software
Vertex S
hader version 1.1 enabled
\n
"
);
TRACE_
(
d3d_caps
)(
"Software
vertex s
hader version 1.1 enabled
\n
"
);
}
else
{
*
pCaps
->
VertexShaderVersion
=
0
;
TRACE_
(
d3d_caps
)(
"Vertex
S
hader functionality not available
\n
"
);
TRACE_
(
d3d_caps
)(
"Vertex
s
hader functionality not available
\n
"
);
}
if
(
This
->
gl_info
.
gl_vendor
==
VENDOR_MESA
||
This
->
gl_info
.
gl_vendor
==
VENDOR_WINE
)
{
...
...
@@ -1704,20 +1704,20 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
*
pCaps
->
PixelShaderVersion
=
D3DPS_VERSION
(
3
,
0
);
/* FIXME: The following line is card dependant. -1.0 to 1.0 is a safe default clamp range for now */
*
pCaps
->
PixelShader1xMaxValue
=
1
.
0
;
TRACE_
(
d3d_caps
)(
"Hardware
Pixel Shaders
versions 2.0+ enabled
\n
"
);
TRACE_
(
d3d_caps
)(
"Hardware
pixel shader
versions 2.0+ enabled
\n
"
);
}
else
if
(
wined3d_settings
.
ps_mode
==
PS_HW
&&
GL_SUPPORT
(
ARB_FRAGMENT_PROGRAM
)
&&
DeviceType
!=
WINED3DDEVTYPE_REF
)
{
*
pCaps
->
PixelShaderVersion
=
D3DPS_VERSION
(
1
,
4
);
*
pCaps
->
PixelShader1xMaxValue
=
1
.
0
;
TRACE_
(
d3d_caps
)(
"Hardware
Pixel Shaders
version 1.4 enabled
\n
"
);
TRACE_
(
d3d_caps
)(
"Hardware
pixel shader
version 1.4 enabled
\n
"
);
/* FIXME: Uncomment this when there is support for software Pixel Shader 1.4 and PS_SW is defined
} else if (wined3d_settings.ps_mode == PS_SW || DeviceType == WINED3DDEVTYPE_REF) {
*pCaps->PixelShaderVersion = D3DPS_VERSION(1,4);
*pCaps->PixelShader1xMaxValue = 1.0;
TRACE_(d3d_caps)("Software
Pixel S
hader version 1.4 enabled\n"); */
TRACE_(d3d_caps)("Software
pixel s
hader version 1.4 enabled\n"); */
}
else
{
*
pCaps
->
PixelShaderVersion
=
0
;
*
pCaps
->
PixelShader1xMaxValue
=
0
.
0
;
TRACE_
(
d3d_caps
)(
"Pixel
S
hader functionality not available
\n
"
);
TRACE_
(
d3d_caps
)(
"Pixel
s
hader functionality not available
\n
"
);
}
/* ------------------------------------------------
...
...
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