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
c2541a58
Commit
c2541a58
authored
Mar 27, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle RCP in shader_hw_scalar_op.
parent
5114507f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-21
No files found.
dlls/wined3d/arb_program_shader.c
View file @
c2541a58
...
@@ -2477,26 +2477,6 @@ static void shader_hw_mnxn(const struct wined3d_shader_instruction *ins)
...
@@ -2477,26 +2477,6 @@ static void shader_hw_mnxn(const struct wined3d_shader_instruction *ins)
}
}
}
}
static
void
shader_hw_rcp
(
const
struct
wined3d_shader_instruction
*
ins
)
{
struct
wined3d_shader_buffer
*
buffer
=
ins
->
ctx
->
buffer
;
char
dst
[
50
];
char
src
[
50
];
shader_arb_get_dst_param
(
ins
,
&
ins
->
dst
[
0
],
dst
);
/* Destination */
shader_arb_get_src_param
(
ins
,
&
ins
->
src
[
0
],
0
,
src
);
if
(
ins
->
src
[
0
].
swizzle
==
WINED3DSP_NOSWIZZLE
)
{
/* Dx sdk says .x is used if no swizzle is given, but our test shows that
* .w is used
*/
strcat
(
src
,
".w"
);
}
shader_addline
(
buffer
,
"RCP%s %s, %s;
\n
"
,
shader_arb_get_modifier
(
ins
),
dst
,
src
);
}
static
DWORD
abs_modifier
(
DWORD
mod
,
BOOL
*
need_abs
)
static
DWORD
abs_modifier
(
DWORD
mod
,
BOOL
*
need_abs
)
{
{
*
need_abs
=
FALSE
;
*
need_abs
=
FALSE
;
...
@@ -5251,7 +5231,7 @@ static const SHADER_HANDLER shader_arb_instruction_handler_table[WINED3DSIH_TABL
...
@@ -5251,7 +5231,7 @@ static const SHADER_HANDLER shader_arb_instruction_handler_table[WINED3DSIH_TABL
/* WINED3DSIH_NRM */
shader_hw_nrm
,
/* WINED3DSIH_NRM */
shader_hw_nrm
,
/* WINED3DSIH_PHASE */
shader_hw_nop
,
/* WINED3DSIH_PHASE */
shader_hw_nop
,
/* WINED3DSIH_POW */
shader_hw_pow
,
/* WINED3DSIH_POW */
shader_hw_pow
,
/* WINED3DSIH_RCP */
shader_hw_
rc
p
,
/* WINED3DSIH_RCP */
shader_hw_
scalar_o
p
,
/* WINED3DSIH_REP */
shader_hw_rep
,
/* WINED3DSIH_REP */
shader_hw_rep
,
/* WINED3DSIH_RET */
shader_hw_ret
,
/* WINED3DSIH_RET */
shader_hw_ret
,
/* WINED3DSIH_ROUND_NI */
NULL
,
/* WINED3DSIH_ROUND_NI */
NULL
,
...
...
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