Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
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
swiftshader
Commits
4677a5f7
Commit
4677a5f7
authored
May 06, 2014
by
Nicolas Capens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed initializing the 'leave' enable mask on every shader iteration.
parent
b5e7a2a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
PixelRoutine.cpp
src/Shader/PixelRoutine.cpp
+5
-0
PixelRoutine.hpp
src/Shader/PixelRoutine.hpp
+0
-5
VertexProgram.cpp
src/Shader/VertexProgram.cpp
+5
-0
VertexRoutine.hpp
src/Shader/VertexRoutine.hpp
+0
-5
No files found.
src/Shader/PixelRoutine.cpp
View file @
4677a5f7
...
...
@@ -3781,6 +3781,11 @@ namespace sw
r
.
enableIndex
=
0
;
r
.
stackIndex
=
0
;
if
(
shader
->
containsLeaveInstruction
())
{
r
.
enableLeave
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
bool
out
[
4
][
4
]
=
{
false
};
// Create all call site return blocks up front
...
...
src/Shader/PixelRoutine.hpp
View file @
4677a5f7
...
...
@@ -66,11 +66,6 @@ namespace sw
enableContinue
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
if
(
shader
&&
shader
->
containsLeaveInstruction
())
{
enableLeave
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
occlusion
=
0
;
#if PERF_PROFILE
...
...
src/Shader/VertexProgram.cpp
View file @
4677a5f7
...
...
@@ -70,6 +70,11 @@ namespace sw
r
.
enableIndex
=
0
;
r
.
stackIndex
=
0
;
if
(
shader
->
containsLeaveInstruction
())
{
r
.
enableLeave
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
// Create all call site return blocks up front
for
(
int
i
=
0
;
i
<
shader
->
getLength
();
i
++
)
{
...
...
src/Shader/VertexRoutine.hpp
View file @
4677a5f7
...
...
@@ -41,11 +41,6 @@ namespace sw
{
enableContinue
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
if
(
shader
&&
shader
->
containsLeaveInstruction
())
{
enableLeave
=
Int4
(
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
}
}
Pointer
<
Byte
>
data
;
...
...
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