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
5a6b4e9f
Commit
5a6b4e9f
authored
Jul 17, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the MAC ARBvp implementation happy about ARL.
parent
726d9d47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+18
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5a6b4e9f
...
...
@@ -1718,15 +1718,30 @@ void vshader_hw_map2gl(SHADER_OPCODE_ARG* arg) {
unsigned
int
i
;
if
((
curOpcode
->
opcode
==
WINED3DSIO_MOV
&&
dst_regtype
==
WINED3DSPR_ADDR
)
||
curOpcode
->
opcode
==
WINED3DSIO_MOVA
)
{
memset
(
tmpLine
,
0
,
sizeof
(
tmpLine
));
if
(
shader
->
rel_offset
)
{
memset
(
tmpLine
,
0
,
sizeof
(
tmpLine
));
vshader_program_add_param
(
arg
,
src
[
0
],
TRUE
,
tmpLine
);
shader_addline
(
buffer
,
"ADD TMP.x, %s, helper_const.z;
\n
"
,
tmpLine
);
shader_addline
(
buffer
,
"ARL A0.x, TMP.x;
\n
"
);
return
;
}
else
{
strcpy
(
tmpLine
,
"ARL"
);
/* Apple's ARB_vertex_program implementation does not accept an ARL source argument
* with more than one component. Thus replicate the first source argument over all
* 4 components. For example, .xyzw -> .x (or better: .xxxx), .zwxy -> .z, etc)
*/
DWORD
parm
=
src
[
0
]
&
~
(
WINED3DVS_SWIZZLE_MASK
);
if
((
src
[
0
]
&
WINED3DVS_X_W
)
==
WINED3DVS_X_W
)
{
parm
|=
WINED3DVS_X_W
|
WINED3DVS_Y_W
|
WINED3DVS_Z_W
|
WINED3DVS_W_W
;
}
else
if
((
src
[
0
]
&
WINED3DVS_X_Z
)
==
WINED3DVS_X_Z
)
{
parm
|=
WINED3DVS_X_Z
|
WINED3DVS_Y_Z
|
WINED3DVS_Z_Z
|
WINED3DVS_W_Z
;
}
else
if
((
src
[
0
]
&
WINED3DVS_X_Y
)
==
WINED3DVS_X_Y
)
{
parm
|=
WINED3DVS_X_Y
|
WINED3DVS_Y_Y
|
WINED3DVS_Z_Y
|
WINED3DVS_W_Y
;
}
else
if
((
src
[
0
]
&
WINED3DVS_X_X
)
==
WINED3DVS_X_X
)
{
parm
|=
WINED3DVS_X_X
|
WINED3DVS_Y_X
|
WINED3DVS_Z_X
|
WINED3DVS_W_X
;
}
vshader_program_add_param
(
arg
,
parm
,
TRUE
,
tmpLine
);
shader_addline
(
buffer
,
"ARL A0.x, %s;
\n
"
,
tmpLine
);
}
return
;
}
else
strcpy
(
tmpLine
,
curOpcode
->
glname
);
...
...
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