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
683e5bfc
Commit
683e5bfc
authored
May 18, 2006
by
Jason Green
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move PARAM C[] program.env[] into baseshader and out of vertex shaders.
parent
6e7d06ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
baseshader.c
dlls/wined3d/baseshader.c
+5
-0
pixelshader.c
dlls/wined3d/pixelshader.c
+1
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+0
-4
No files found.
dlls/wined3d/baseshader.c
View file @
683e5bfc
...
...
@@ -523,6 +523,11 @@ void generate_arb_declarations(IWineD3DBaseShader *iface, SHADER_BUFFER* buffer)
if
(
This
->
baseShader
.
textures_used
&
(
1
<<
i
))
shader_addline
(
buffer
,
"MOV T%lu, fragment.texcoord[%lu];
\n
"
,
i
,
i
);
}
/* Need to PARAM the environment parameters (constants) so we can use relative addressing */
shader_addline
(
buffer
,
"PARAM C[%d] = { program.env[0..%d] };
\n
"
,
This
->
baseShader
.
limits
.
constant_float
,
This
->
baseShader
.
limits
.
constant_float
-
1
);
}
/** Generate the variable & register declarations for the GLSL
...
...
dlls/wined3d/pixelshader.c
View file @
683e5bfc
...
...
@@ -764,7 +764,7 @@ inline static void get_register_name(const DWORD param, char* regstr, char const
if
(
constants
[
reg
])
sprintf
(
regstr
,
"C%lu"
,
reg
);
else
sprintf
(
regstr
,
"
program.env
[%lu]"
,
reg
);
sprintf
(
regstr
,
"
C
[%lu]"
,
reg
);
break
;
case
D3DSPR_TEXTURE
:
/* case D3DSPR_ADDR: */
sprintf
(
regstr
,
"T%lu"
,
reg
);
...
...
dlls/wined3d/vertexshader.c
View file @
683e5bfc
...
...
@@ -1073,10 +1073,6 @@ inline static VOID IWineD3DVertexShaderImpl_GenerateShader(
This
->
baseShader
.
limits
.
constant_float
=
min
(
95
,
This
->
baseShader
.
limits
.
constant_float
);
shader_addline
(
&
buffer
,
"PARAM C[%d] = { program.env[0..%d] };
\n
"
,
This
->
baseShader
.
limits
.
constant_float
,
This
->
baseShader
.
limits
.
constant_float
-
1
);
/** Call the base shader generation routine to generate most
of the vertex shader string for us */
generate_base_shader
(
(
IWineD3DBaseShader
*
)
This
,
&
buffer
,
pFunction
);
...
...
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