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
07203fa4
Commit
07203fa4
authored
Oct 08, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove unused wined3d_shader_limits fields.
parent
eedbdded
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
51 deletions
+0
-51
shader.c
dlls/wined3d/shader.c
+0
-46
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-5
No files found.
dlls/wined3d/shader.c
View file @
07203fa4
...
...
@@ -1761,21 +1761,16 @@ static void vertexshader_set_limits(struct wined3d_shader *shader)
shader
->
reg_maps
.
shader_version
.
minor
);
struct
wined3d_device
*
device
=
shader
->
device
;
shader
->
limits
.
texcoord
=
0
;
shader
->
limits
.
attributes
=
16
;
shader
->
limits
.
packed_input
=
0
;
switch
(
shader_version
)
{
case
WINED3D_SHADER_VERSION
(
1
,
0
):
case
WINED3D_SHADER_VERSION
(
1
,
1
):
shader
->
limits
.
temporary
=
12
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
12
;
shader
->
limits
.
sampler
=
0
;
shader
->
limits
.
label
=
0
;
/* TODO: vs_1_1 has a minimum of 96 constants. What happens when
* a vs_1_1 shader is used on a vs_3_0 capable card that has 256
* constants? */
...
...
@@ -1784,24 +1779,18 @@ static void vertexshader_set_limits(struct wined3d_shader *shader)
case
WINED3D_SHADER_VERSION
(
2
,
0
):
case
WINED3D_SHADER_VERSION
(
2
,
1
):
shader
->
limits
.
temporary
=
12
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
12
;
shader
->
limits
.
sampler
=
0
;
shader
->
limits
.
label
=
16
;
shader
->
limits
.
constant_float
=
min
(
256
,
device
->
d3d_vshader_constantF
);
break
;
case
WINED3D_SHADER_VERSION
(
3
,
0
):
shader
->
limits
.
temporary
=
32
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
12
;
shader
->
limits
.
sampler
=
4
;
shader
->
limits
.
label
=
16
;
/* FIXME: 2048 */
/* DX10 cards on Windows advertise a d3d9 constant limit of 256
* even though they are capable of supporting much more (GL
* drivers advertise 1024). d3d9.dll and d3d8.dll clamp the
...
...
@@ -1811,26 +1800,19 @@ static void vertexshader_set_limits(struct wined3d_shader *shader)
break
;
case
WINED3D_SHADER_VERSION
(
4
,
0
):
shader
->
limits
.
temporary
=
32
;
/* FIXME: 4096 */
shader
->
limits
.
sampler
=
16
;
/* FIXME: 128 resources, 16 sampler states */
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
constant_float
=
0
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
16
;
shader
->
limits
.
packed_input
=
0
;
shader
->
limits
.
attributes
=
16
;
shader
->
limits
.
label
=
16
;
break
;
default:
shader
->
limits
.
temporary
=
12
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
12
;
shader
->
limits
.
sampler
=
0
;
shader
->
limits
.
label
=
16
;
shader
->
limits
.
constant_float
=
min
(
256
,
device
->
d3d_vshader_constantF
);
FIXME
(
"Unrecognized vertex shader version
\"
%u.%u
\"
.
\n
"
,
shader
->
reg_maps
.
shader_version
.
major
,
...
...
@@ -1896,17 +1878,12 @@ static void geometryshader_set_limits(struct wined3d_shader *shader)
switch
(
shader_version
)
{
case
WINED3D_SHADER_VERSION
(
4
,
0
):
shader
->
limits
.
temporary
=
32
;
/* FIXME: 4096 */
shader
->
limits
.
texcoord
=
0
;
shader
->
limits
.
sampler
=
16
;
/* FIXME: 128 resources, 16 sampler states */
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
constant_float
=
0
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_output
=
32
;
shader
->
limits
.
packed_input
=
16
;
shader
->
limits
.
attributes
=
0
;
shader
->
limits
.
label
=
16
;
break
;
default:
...
...
@@ -2094,8 +2071,6 @@ static void pixelshader_set_limits(struct wined3d_shader *shader)
DWORD
shader_version
=
WINED3D_SHADER_VERSION
(
shader
->
reg_maps
.
shader_version
.
major
,
shader
->
reg_maps
.
shader_version
.
minor
);
shader
->
limits
.
attributes
=
0
;
shader
->
limits
.
address
=
0
;
shader
->
limits
.
packed_output
=
0
;
switch
(
shader_version
)
...
...
@@ -2104,81 +2079,60 @@ static void pixelshader_set_limits(struct wined3d_shader *shader)
case
WINED3D_SHADER_VERSION
(
1
,
1
):
case
WINED3D_SHADER_VERSION
(
1
,
2
):
case
WINED3D_SHADER_VERSION
(
1
,
3
):
shader
->
limits
.
temporary
=
2
;
shader
->
limits
.
constant_float
=
8
;
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
texcoord
=
4
;
shader
->
limits
.
sampler
=
4
;
shader
->
limits
.
packed_input
=
0
;
shader
->
limits
.
label
=
0
;
break
;
case
WINED3D_SHADER_VERSION
(
1
,
4
):
shader
->
limits
.
temporary
=
6
;
shader
->
limits
.
constant_float
=
8
;
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
texcoord
=
6
;
shader
->
limits
.
sampler
=
6
;
shader
->
limits
.
packed_input
=
0
;
shader
->
limits
.
label
=
0
;
break
;
/* FIXME: Temporaries must match D3DPSHADERCAPS2_0.NumTemps. */
case
WINED3D_SHADER_VERSION
(
2
,
0
):
shader
->
limits
.
temporary
=
32
;
shader
->
limits
.
constant_float
=
32
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
texcoord
=
8
;
shader
->
limits
.
sampler
=
16
;
shader
->
limits
.
packed_input
=
0
;
break
;
case
WINED3D_SHADER_VERSION
(
2
,
1
):
shader
->
limits
.
temporary
=
32
;
shader
->
limits
.
constant_float
=
32
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
texcoord
=
8
;
shader
->
limits
.
sampler
=
16
;
shader
->
limits
.
packed_input
=
0
;
shader
->
limits
.
label
=
16
;
break
;
case
WINED3D_SHADER_VERSION
(
3
,
0
):
shader
->
limits
.
temporary
=
32
;
shader
->
limits
.
constant_float
=
224
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
texcoord
=
0
;
shader
->
limits
.
sampler
=
16
;
shader
->
limits
.
packed_input
=
12
;
shader
->
limits
.
label
=
16
;
/* FIXME: 2048 */
break
;
case
WINED3D_SHADER_VERSION
(
4
,
0
):
shader
->
limits
.
temporary
=
32
;
/* FIXME: 4096 */
shader
->
limits
.
texcoord
=
0
;
shader
->
limits
.
sampler
=
16
;
/* FIXME: 128 resources, 16 sampler states */
shader
->
limits
.
constant_int
=
0
;
shader
->
limits
.
constant_float
=
0
;
shader
->
limits
.
constant_bool
=
0
;
shader
->
limits
.
address
=
1
;
shader
->
limits
.
packed_input
=
32
;
shader
->
limits
.
label
=
16
;
break
;
default:
shader
->
limits
.
temporary
=
32
;
shader
->
limits
.
constant_float
=
32
;
shader
->
limits
.
constant_int
=
16
;
shader
->
limits
.
constant_bool
=
16
;
shader
->
limits
.
texcoord
=
8
;
shader
->
limits
.
sampler
=
16
;
shader
->
limits
.
packed_input
=
0
;
shader
->
limits
.
label
=
0
;
FIXME
(
"Unrecognized pixel shader version %u.%u
\n
"
,
shader
->
reg_maps
.
shader_version
.
major
,
shader
->
reg_maps
.
shader_version
.
minor
);
...
...
dlls/wined3d/wined3d_private.h
View file @
07203fa4
...
...
@@ -2553,17 +2553,12 @@ struct wined3d_shader_lconst
struct
wined3d_shader_limits
{
unsigned
int
temporary
;
unsigned
int
texcoord
;
unsigned
int
sampler
;
unsigned
int
constant_int
;
unsigned
int
constant_float
;
unsigned
int
constant_bool
;
unsigned
int
address
;
unsigned
int
packed_output
;
unsigned
int
packed_input
;
unsigned
int
attributes
;
unsigned
int
label
;
};
#ifdef __GNUC__
...
...
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