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
2cb49c67
Commit
2cb49c67
authored
Jan 15, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass the correct mask to shader_glsl_add_src_param() in shader_glsl_loop().
Fix the comment.
parent
cf1a3cc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+4
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
2cb49c67
...
@@ -1397,17 +1397,18 @@ void shader_glsl_sincos(SHADER_OPCODE_ARG* arg) {
...
@@ -1397,17 +1397,18 @@ void shader_glsl_sincos(SHADER_OPCODE_ARG* arg) {
}
}
/** Process the WINED3DSIO_LOOP instruction in GLSL:
/** Process the WINED3DSIO_LOOP instruction in GLSL:
* Start a for() loop where src
0
.y is the initial value of aL,
* Start a for() loop where src
1
.y is the initial value of aL,
* increment aL by src
0.z for a total of src0
.x iterations.
* increment aL by src
1.z for a total of src1
.x iterations.
* Need to use a temporary variable for this operation.
* Need to use a temporary variable for this operation.
*/
*/
/* FIXME: I don't think nested loops will work correctly this way. */
void
shader_glsl_loop
(
SHADER_OPCODE_ARG
*
arg
)
{
void
shader_glsl_loop
(
SHADER_OPCODE_ARG
*
arg
)
{
char
src1_str
[
100
];
char
src1_str
[
100
];
char
src1_reg
[
50
];
char
src1_reg
[
50
];
char
src1_mask
[
6
];
char
src1_mask
[
6
];
shader_glsl_add_src_param
_old
(
arg
,
arg
->
src
[
1
],
arg
->
src_addr
[
1
]
,
src1_reg
,
src1_mask
,
src1_str
);
shader_glsl_add_src_param
(
arg
,
arg
->
src
[
1
],
arg
->
src_addr
[
1
],
WINED3DSP_WRITEMASK_ALL
,
src1_reg
,
src1_mask
,
src1_str
);
shader_addline
(
arg
->
buffer
,
"for (tmpInt = 0, aL = %s.y; tmpInt < %s.x; tmpInt++, aL += %s.z) {
\n
"
,
shader_addline
(
arg
->
buffer
,
"for (tmpInt = 0, aL = %s.y; tmpInt < %s.x; tmpInt++, aL += %s.z) {
\n
"
,
src1_reg
,
src1_reg
,
src1_reg
);
src1_reg
,
src1_reg
,
src1_reg
);
...
...
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