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
5786d3a0
Commit
5786d3a0
authored
May 20, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
May 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Shader assembler ps_2_x support.
parent
ce3e846f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
246 additions
and
8 deletions
+246
-8
asmparser.c
dlls/d3dx9_36/asmparser.c
+227
-2
asmshader.y
dlls/d3dx9_36/asmshader.y
+2
-4
bytecodewriter.c
dlls/d3dx9_36/bytecodewriter.c
+0
-0
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+6
-0
asm.c
dlls/d3dx9_36/tests/asm.c
+11
-2
No files found.
dlls/d3dx9_36/asmparser.c
View file @
5786d3a0
This diff is collapsed.
Click to expand it.
dlls/d3dx9_36/asmshader.y
View file @
5786d3a0
...
...
@@ -328,14 +328,12 @@ version_marker: VER_VS10
| VER_PS20
{
TRACE("Pixel shader 2.0\n");
set_parse_status(&asm_ctx, PARSE_ERR);
YYABORT;
create_ps20_parser(&asm_ctx);
}
| VER_PS2X
{
TRACE("Pixel shader 2.x\n");
set_parse_status(&asm_ctx, PARSE_ERR);
YYABORT;
create_ps2x_parser(&asm_ctx);
}
| VER_PS30
{
...
...
dlls/d3dx9_36/bytecodewriter.c
View file @
5786d3a0
This diff is collapsed.
Click to expand it.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
5786d3a0
...
...
@@ -314,6 +314,8 @@ extern struct asm_parser asm_ctx;
void
create_vs20_parser
(
struct
asm_parser
*
ret
);
void
create_vs2x_parser
(
struct
asm_parser
*
ret
);
void
create_vs30_parser
(
struct
asm_parser
*
ret
);
void
create_ps20_parser
(
struct
asm_parser
*
ret
);
void
create_ps2x_parser
(
struct
asm_parser
*
ret
);
void
create_ps30_parser
(
struct
asm_parser
*
ret
);
struct
bwriter_shader
*
parse_asm_shader
(
char
**
messages
);
...
...
@@ -380,6 +382,10 @@ struct bc_writer {
DWORD
oFog_mask
;
DWORD
oPts_regnum
;
DWORD
oPts_mask
;
/* Pixel shader specific members */
DWORD
t_regnum
[
8
];
DWORD
v_regnum
[
2
];
};
/* Debug utility routines */
...
...
dlls/d3dx9_36/tests/asm.c
View file @
5786d3a0
...
...
@@ -1015,6 +1015,15 @@ static void ps_2_x_test(void) {
{
0xffff0201
,
0x01000026
,
0xf0e40000
,
0x01000060
,
0xb0ff1000
,
0x00000027
,
0x0000ffff
}
},
{
/* shader 16 */
"ps_2_x
\n
"
"call l2047
\n
"
"ret
\n
"
"label l2047
\n
"
"ret
\n
"
,
{
0xffff0201
,
0x01000019
,
0xa0e417ff
,
0x0000001c
,
0x0100001e
,
0xa0e417ff
,
0x0000001c
,
0x0000ffff
}
},
};
exec_tests
(
"ps_2_x"
,
tests
,
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]));
...
...
@@ -1504,8 +1513,8 @@ START_TEST(asm)
todo_wine
ps_1_4_test
();
vs_2_0_test
();
vs_2_x_test
();
todo_wine
ps_2_0_test
();
todo_wine
ps_2_x_test
();
ps_2_0_test
();
ps_2_x_test
();
vs_3_0_test
();
ps_3_0_test
();
...
...
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