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
5050f7c8
Commit
5050f7c8
authored
May 16, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
May 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Shader assembler vs_2_x support.
parent
961db796
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
6 deletions
+23
-6
asmparser.c
dlls/d3dx9_36/asmparser.c
+0
-0
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
+11
-0
asm.c
dlls/d3dx9_36/tests/asm.c
+10
-2
No files found.
dlls/d3dx9_36/asmparser.c
View file @
5050f7c8
This diff is collapsed.
Click to expand it.
dlls/d3dx9_36/asmshader.y
View file @
5050f7c8
...
...
@@ -283,14 +283,12 @@ version_marker: VER_VS10
| VER_VS20
{
TRACE("Vertex shader 2.0\n");
set_parse_status(&asm_ctx, PARSE_ERR);
YYABORT;
create_vs20_parser(&asm_ctx);
}
| VER_VS2X
{
TRACE("Vertex shader 2.x\n");
set_parse_status(&asm_ctx, PARSE_ERR);
YYABORT;
create_vs2x_parser(&asm_ctx);
}
| VER_VS30
{
...
...
dlls/d3dx9_36/bytecodewriter.c
View file @
5050f7c8
This diff is collapsed.
Click to expand it.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
5050f7c8
...
...
@@ -311,6 +311,8 @@ struct asm_parser {
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_ps30_parser
(
struct
asm_parser
*
ret
);
...
...
@@ -369,6 +371,15 @@ struct bc_writer {
HRESULT
state
;
DWORD
version
;
/* Vertex shader varying mapping */
DWORD
oPos_regnum
;
DWORD
oD_regnum
[
2
];
DWORD
oT_regnum
[
8
];
DWORD
oFog_regnum
;
DWORD
oFog_mask
;
DWORD
oPts_regnum
;
DWORD
oPts_mask
;
};
/* Debug utility routines */
...
...
dlls/d3dx9_36/tests/asm.c
View file @
5050f7c8
...
...
@@ -739,6 +739,14 @@ static void vs_2_0_test(void) {
"endif
\n
"
,
{
0xfffe0200
,
0x01000028
,
0xede40800
,
0x0000002a
,
0x0000002b
,
0x0000ffff
}
},
{
/* shader 28 */
"vs_2_0
\n
"
"call l3
\n
"
"ret
\n
"
"label l3
\n
"
"ret
\n
"
,
{
0xfffe0200
,
0x01000019
,
0xa0e41003
,
0x0000001c
,
0x0100001e
,
0xa0e41003
,
0x0000001c
,
0x0000ffff
}
},
};
exec_tests
(
"vs_2_0"
,
tests
,
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]));
...
...
@@ -1467,8 +1475,8 @@ START_TEST(asm)
todo_wine
vs_1_1_test
();
todo_wine
ps_1_3_test
();
todo_wine
ps_1_4_test
();
todo_wine
vs_2_0_test
();
todo_wine
vs_2_x_test
();
vs_2_0_test
();
vs_2_x_test
();
todo_wine
ps_2_0_test
();
todo_wine
ps_2_x_test
();
vs_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