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
b4678b7b
Commit
b4678b7b
authored
Oct 12, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Optimize P8 fragment shader.
parent
7be8a646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
surface.c
dlls/wined3d/surface.c
+1
-2
No files found.
dlls/wined3d/surface.c
View file @
b4678b7b
...
...
@@ -1980,8 +1980,7 @@ const char *fragment_palette_conversion =
"TEMP index;
\n
"
"PARAM constants = { 0.996, 0.00195, 0, 0 };
\n
"
/* { 255/256, 0.5/255*255/256, 0, 0 } */
"TEX index.x, fragment.texcoord[0], texture[0], 2D;
\n
"
/* store the red-component of the current pixel */
"MUL index.x, index.x, constants.x;
\n
"
/* Scale the index by 255/256 */
"ADD index.x, index.x, constants.y;
\n
"
/* Add a bias of '0.5' in order to sample in the middle */
"MAD index.x, index.x, constants.x, constants.y;
\n
"
/* Scale the index by 255/256 and add a bias of '0.5' in order to sample in the middle */
"TEX result.color, index, texture[1], 1D;
\n
"
/* use the red-component as a index in the palette to get the final color */
"END"
;
...
...
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