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
d0756ee5
Commit
d0756ee5
authored
May 21, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Support ABS and ABSNEG with NV extensions if available.
parent
01ec5068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+13
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
d0756ee5
...
...
@@ -811,6 +811,7 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
char
swzstr
[
20
];
int
insert_line
;
SHADER_BUFFER
*
buffer
=
ins
->
ctx
->
buffer
;
struct
shader_arb_ctx_priv
*
ctx
=
ins
->
ctx
->
backend_data
;
/* Assume a new line will be added */
insert_line
=
1
;
...
...
@@ -859,11 +860,20 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
shader_addline
(
buffer
,
"MUL T%c, %s, T%c;
\n
"
,
'A'
+
tmpreg
,
regstr
,
'A'
+
tmpreg
);
break
;
case
WINED3DSPSM_ABS
:
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
if
(
ctx
->
target_version
>=
NV2
)
{
sprintf
(
outregstr
,
"|%s%s|"
,
regstr
,
swzstr
);
insert_line
=
0
;
}
else
{
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
}
break
;
case
WINED3DSPSM_ABSNEG
:
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
sprintf
(
outregstr
,
"-T%c%s"
,
'A'
+
tmpreg
,
swzstr
);
if
(
ctx
->
target_version
>=
NV2
)
{
sprintf
(
outregstr
,
"-|%s%s|"
,
regstr
,
swzstr
);
}
else
{
shader_addline
(
buffer
,
"ABS T%c, %s;
\n
"
,
'A'
+
tmpreg
,
regstr
);
sprintf
(
outregstr
,
"-T%c%s"
,
'A'
+
tmpreg
,
swzstr
);
}
insert_line
=
0
;
break
;
default:
...
...
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