Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2327e316
Commit
2327e316
authored
May 07, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Tidy up pshader_hw_texreg2rgb and friends.
parent
05cc344e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+6
-6
No files found.
dlls/wined3d/arb_program_shader.c
View file @
2327e316
...
...
@@ -1128,11 +1128,11 @@ static void pshader_hw_texreg2ar(const struct wined3d_shader_instruction *ins)
DWORD
flags
;
DWORD
reg1
=
ins
->
dst
[
0
].
reg
.
idx
;
char
dst_str
[
8
];
char
dst_str
[
50
];
char
src_str
[
50
];
/* Note that texreg2ar treats Tx as a temporary register, not as a varying */
s
printf
(
dst_str
,
"T%u"
,
reg1
);
s
hader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src_str
);
shader_addline
(
buffer
,
"MOV TMP.x, %s.w;
\n
"
,
src_str
);
shader_addline
(
buffer
,
"MOV TMP.y, %s.x;
\n
"
,
src_str
);
...
...
@@ -1145,11 +1145,11 @@ static void pshader_hw_texreg2gb(const struct wined3d_shader_instruction *ins)
SHADER_BUFFER
*
buffer
=
ins
->
ctx
->
buffer
;
DWORD
reg1
=
ins
->
dst
[
0
].
reg
.
idx
;
char
dst_str
[
8
];
char
dst_str
[
50
];
char
src_str
[
50
];
/* Note that texreg2gb treats Tx as a temporary register, not as a varying */
s
printf
(
dst_str
,
"T%u"
,
reg1
);
s
hader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src_str
);
shader_addline
(
buffer
,
"MOV TMP.x, %s.y;
\n
"
,
src_str
);
shader_addline
(
buffer
,
"MOV TMP.y, %s.z;
\n
"
,
src_str
);
...
...
@@ -1159,11 +1159,11 @@ static void pshader_hw_texreg2gb(const struct wined3d_shader_instruction *ins)
static
void
pshader_hw_texreg2rgb
(
const
struct
wined3d_shader_instruction
*
ins
)
{
DWORD
reg1
=
ins
->
dst
[
0
].
reg
.
idx
;
char
dst_str
[
8
];
char
dst_str
[
50
];
char
src_str
[
50
];
/* Note that texreg2rg treats Tx as a temporary register, not as a varying */
s
printf
(
dst_str
,
"T%u"
,
reg1
);
s
hader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst_str
);
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src_str
);
shader_hw_sample
(
ins
,
reg1
,
dst_str
,
src_str
,
FALSE
,
FALSE
);
}
...
...
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