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
c6e8ab13
Commit
c6e8ab13
authored
May 06, 2014
by
Nicolas Capens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only apply the enable mask on instructions requiring predication.
parent
36b989cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
+14
-2
main.cpp
src/GLES2/libEGL/main.cpp
+1
-0
PixelRoutine.cpp
src/Shader/PixelRoutine.cpp
+1
-1
Shader.cpp
src/Shader/Shader.cpp
+9
-0
Shader.hpp
src/Shader/Shader.hpp
+2
-0
VertexProgram.cpp
src/Shader/VertexProgram.cpp
+1
-1
No files found.
src/GLES2/libEGL/main.cpp
View file @
c6e8ab13
...
...
@@ -115,6 +115,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
// MessageBoxA(0, "Attach debugger now and press OK", "SwiftShader loaded", MB_OK);
return
eglAttachProcess
();
break
;
case
DLL_THREAD_ATTACH
:
...
...
src/Shader/PixelRoutine.cpp
View file @
c6e8ab13
...
...
@@ -4007,7 +4007,7 @@ namespace sw
if
(
dst
.
w
)
d
.
w
=
Min
(
d
.
w
,
Float4
(
1.0
f
));
}
if
(
shader
->
containsDynamicBranching
())
if
(
instruction
->
isPredicated
())
{
Vector4f
pDst
;
// FIXME: Rename
...
...
src/Shader/Shader.cpp
View file @
c6e8ab13
...
...
@@ -1024,6 +1024,15 @@ namespace sw
return
opcode
==
OPCODE_ENDLOOP
||
opcode
==
OPCODE_ENDREP
||
opcode
==
OPCODE_ENDWHILE
;
}
bool
Shader
::
Instruction
::
isPredicated
()
const
{
return
predicate
||
analysisBranch
||
analysisBreak
||
analysisContinue
||
analysisLeave
;
}
Shader
::
Shader
()
:
serialID
(
serialCounter
++
)
{
usedSamplers
=
0
;
...
...
src/Shader/Shader.hpp
View file @
c6e8ab13
...
...
@@ -430,6 +430,8 @@ namespace sw
bool
isLoop
()
const
;
bool
isEndLoop
()
const
;
bool
isPredicated
()
const
;
Opcode
opcode
;
union
...
...
src/Shader/VertexProgram.cpp
View file @
c6e8ab13
...
...
@@ -283,7 +283,7 @@ namespace sw
if
(
dst
.
w
)
d
.
w
=
Min
(
d
.
w
,
Float4
(
1.0
f
));
}
if
(
shader
->
containsDynamicBranching
())
if
(
instruction
->
isPredicated
())
{
Vector4f
pDst
;
// FIXME: Rename
...
...
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