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
c68df5f2
Commit
c68df5f2
authored
May 07, 2014
by
Nicolas Capens
Committed by
Nicolas Capens
May 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize culling.
BUG=14625629 Change-Id: Iafe3d2db66d4f7e1a0597ffdaf865a781a015216
parent
10219e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SetupRoutine.cpp
src/Shader/SetupRoutine.cpp
+4
-4
No files found.
src/Shader/SetupRoutine.cpp
View file @
c68df5f2
...
...
@@ -89,11 +89,11 @@ namespace sw
Return
(
false
);
}
Float
w0w1w2
=
*
Pointer
<
Float
>
(
v0
+
pos
*
16
+
12
)
*
*
Pointer
<
Float
>
(
v1
+
pos
*
16
+
12
)
*
*
Pointer
<
Floa
t
>
(
v2
+
pos
*
16
+
12
);
Int
w0w1w2
=
*
Pointer
<
Int
>
(
v0
+
pos
*
16
+
12
)
^
*
Pointer
<
Int
>
(
v1
+
pos
*
16
+
12
)
^
*
Pointer
<
In
t
>
(
v2
+
pos
*
16
+
12
);
A
=
IfThenElse
(
w0w1w2
<
0
.0
f
,
-
A
,
A
);
A
=
IfThenElse
(
w0w1w2
<
0
,
-
A
,
A
);
if
(
state
.
cullMode
==
Context
::
CULL_CLOCKWISE
)
{
...
...
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