Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
f1f538ef
Commit
f1f538ef
authored
Feb 09, 2011
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix loop splitting.
Trac #15446 Issue=98 Signed-off-by: Daniel Koch git-svn-id:
https://angleproject.googlecode.com/svn/trunk@555
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
e41afd8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OutputHLSL.cpp
src/compiler/OutputHLSL.cpp
+3
-3
No files found.
src/compiler/OutputHLSL.cpp
View file @
f1f538ef
...
...
@@ -1706,7 +1706,7 @@ bool OutputHLSL::handleExcessiveLoop(TIntermLoop *node)
if
(
comparator
==
EOpLessThan
)
{
int
iterations
=
(
limit
-
initial
+
1
)
/
increment
;
int
iterations
=
(
limit
-
initial
)
/
increment
;
if
(
iterations
<=
255
)
{
...
...
@@ -1715,8 +1715,8 @@ bool OutputHLSL::handleExcessiveLoop(TIntermLoop *node)
while
(
iterations
>
0
)
{
int
remainder
=
(
limit
-
initial
+
1
)
%
increment
;
int
clampedLimit
=
initial
+
increment
*
std
::
min
(
255
,
iterations
)
-
1
-
remainder
;
int
remainder
=
(
limit
-
initial
)
%
increment
;
int
clampedLimit
=
initial
+
increment
*
std
::
min
(
255
,
iterations
);
// for(int index = initial; index < clampedLimit; index += increment)
...
...
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