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
af6b98c4
Commit
af6b98c4
authored
Dec 08, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DVSHADERCAPS2_0 typedef.
parent
f3afa69f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
24 deletions
+23
-24
d3d9_private.h
dlls/d3d9/d3d9_private.h
+4
-5
directx.c
dlls/wined3d/directx.c
+12
-12
wined3d.h
include/wine/wined3d.h
+7
-7
No files found.
dlls/d3d9/d3d9_private.h
View file @
af6b98c4
...
...
@@ -111,11 +111,10 @@ enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_H
_pD3D9Caps->DeclTypes = _pWineCaps->DeclTypes; \
_pD3D9Caps->NumSimultaneousRTs = _pWineCaps->NumSimultaneousRTs; \
_pD3D9Caps->StretchRectFilterCaps = _pWineCaps->StretchRectFilterCaps; \
_pD3D9Caps->VS20Caps.Caps = _pWineCaps->VS20Caps.Caps; \
_pD3D9Caps->VS20Caps.DynamicFlowControlDepth = _pWineCaps->VS20Caps.DynamicFlowControlDepth; \
_pD3D9Caps->VS20Caps.NumTemps = _pWineCaps->VS20Caps.NumTemps; \
_pD3D9Caps->VS20Caps.NumTemps = _pWineCaps->VS20Caps.NumTemps; \
_pD3D9Caps->VS20Caps.StaticFlowControlDepth = _pWineCaps->VS20Caps.StaticFlowControlDepth; \
_pD3D9Caps->VS20Caps.Caps = _pWineCaps->VS20Caps.caps; \
_pD3D9Caps->VS20Caps.DynamicFlowControlDepth = _pWineCaps->VS20Caps.dynamic_flow_control_depth; \
_pD3D9Caps->VS20Caps.NumTemps = _pWineCaps->VS20Caps.temp_count; \
_pD3D9Caps->VS20Caps.StaticFlowControlDepth = _pWineCaps->VS20Caps.static_flow_control_depth; \
_pD3D9Caps->PS20Caps.Caps = _pWineCaps->PS20Caps.Caps; \
_pD3D9Caps->PS20Caps.DynamicFlowControlDepth = _pWineCaps->PS20Caps.DynamicFlowControlDepth; \
_pD3D9Caps->PS20Caps.NumTemps = _pWineCaps->PS20Caps.NumTemps; \
...
...
dlls/wined3d/directx.c
View file @
af6b98c4
...
...
@@ -4763,32 +4763,32 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
* aren't set (in case of software rendering) use the VS 3.0 from
* MSDN or else if there's OpenGL spec use a hardcoded value minimum
* VS3.0 value. */
caps
->
VS20Caps
.
Caps
=
WINED3DVS20CAPS_PREDICATION
;
caps
->
VS20Caps
.
caps
=
WINED3DVS20CAPS_PREDICATION
;
/* VS 3.0 requires MAX_DYNAMICFLOWCONTROLDEPTH (24) */
caps
->
VS20Caps
.
DynamicFlowControlDepth
=
WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH
;
caps
->
VS20Caps
.
NumTemps
=
max
(
32
,
adapter
->
gl_info
.
limits
.
arb_vs_temps
);
caps
->
VS20Caps
.
dynamic_flow_control_depth
=
WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH
;
caps
->
VS20Caps
.
temp_count
=
max
(
32
,
adapter
->
gl_info
.
limits
.
arb_vs_temps
);
/* level of nesting in loops / if-statements; VS 3.0 requires MAX (4) */
caps
->
VS20Caps
.
StaticFlowControlDepth
=
WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH
;
caps
->
VS20Caps
.
static_flow_control_depth
=
WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH
;
caps
->
MaxVShaderInstructionsExecuted
=
65535
;
/* VS 3.0 needs at least 65535, some cards even use 2^32-1 */
caps
->
MaxVertexShader30InstructionSlots
=
max
(
512
,
adapter
->
gl_info
.
limits
.
arb_vs_instructions
);
}
else
if
(
caps
->
VertexShaderVersion
==
2
)
{
caps
->
VS20Caps
.
Caps
=
0
;
caps
->
VS20Caps
.
DynamicFlowControlDepth
=
WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH
;
caps
->
VS20Caps
.
NumTemps
=
max
(
12
,
adapter
->
gl_info
.
limits
.
arb_vs_temps
);
caps
->
VS20Caps
.
StaticFlowControlDepth
=
1
;
caps
->
VS20Caps
.
caps
=
0
;
caps
->
VS20Caps
.
dynamic_flow_control_depth
=
WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH
;
caps
->
VS20Caps
.
temp_count
=
max
(
12
,
adapter
->
gl_info
.
limits
.
arb_vs_temps
);
caps
->
VS20Caps
.
static_flow_control_depth
=
1
;
caps
->
MaxVShaderInstructionsExecuted
=
65535
;
caps
->
MaxVertexShader30InstructionSlots
=
0
;
}
else
{
/* VS 1.x */
caps
->
VS20Caps
.
Caps
=
0
;
caps
->
VS20Caps
.
DynamicFlowControlDepth
=
0
;
caps
->
VS20Caps
.
NumTemps
=
0
;
caps
->
VS20Caps
.
StaticFlowControlDepth
=
0
;
caps
->
VS20Caps
.
caps
=
0
;
caps
->
VS20Caps
.
dynamic_flow_control_depth
=
0
;
caps
->
VS20Caps
.
temp_count
=
0
;
caps
->
VS20Caps
.
static_flow_control_depth
=
0
;
caps
->
MaxVShaderInstructionsExecuted
=
0
;
caps
->
MaxVertexShader30InstructionSlots
=
0
;
...
...
include/wine/wined3d.h
View file @
af6b98c4
...
...
@@ -1742,13 +1742,13 @@ struct wined3d_strided_data
BOOL
position_transformed
;
};
typedef
struct
_WINED3DVSHADERCAPS2_0
struct
wined3d_vertex_shader_caps
{
DWORD
C
aps
;
INT
DynamicFlowControlD
epth
;
INT
NumTemps
;
INT
StaticFlowControlD
epth
;
}
WINED3DVSHADERCAPS2_0
;
DWORD
c
aps
;
INT
dynamic_flow_control_d
epth
;
INT
temp_count
;
INT
static_flow_control_d
epth
;
};
typedef
struct
_WINED3DPSHADERCAPS2_0
{
...
...
@@ -1860,7 +1860,7 @@ typedef struct _WINED3DCAPS
DWORD
DeclTypes
;
DWORD
NumSimultaneousRTs
;
DWORD
StretchRectFilterCaps
;
WINED3DVSHADERCAPS2_0
VS20Caps
;
struct
wined3d_vertex_shader_caps
VS20Caps
;
WINED3DPSHADERCAPS2_0
PS20Caps
;
DWORD
VertexTextureFilterCaps
;
DWORD
MaxVShaderInstructionsExecuted
;
...
...
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