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
5a5844d4
Commit
5a5844d4
authored
Jun 08, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Disallow sampler declarations where not supported.
parent
a74978df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
asmparser.c
dlls/d3dx9_36/asmparser.c
+9
-2
asm.c
dlls/d3dx9_36/tests/asm.c
+3
-0
No files found.
dlls/d3dx9_36/asmparser.c
View file @
5a5844d4
...
@@ -178,6 +178,13 @@ static void asmparser_dcl_sampler(struct asm_parser *This, DWORD samptype,
...
@@ -178,6 +178,13 @@ static void asmparser_dcl_sampler(struct asm_parser *This, DWORD samptype,
}
}
}
}
static
void
asmparser_dcl_sampler_unsupported
(
struct
asm_parser
*
This
,
DWORD
samptype
,
DWORD
mod
,
DWORD
regnum
,
unsigned
int
line_no
)
{
asmparser_message
(
This
,
"Line %u: Sampler declaration unsupported in this shader version
\n
"
,
This
->
line_no
);
set_parse_status
(
This
,
PARSE_ERR
);
}
static
void
asmparser_sincos
(
struct
asm_parser
*
This
,
DWORD
mod
,
DWORD
shift
,
static
void
asmparser_sincos
(
struct
asm_parser
*
This
,
DWORD
mod
,
DWORD
shift
,
const
struct
shader_reg
*
dst
,
const
struct
shader_reg
*
dst
,
const
struct
src_regs
*
srcs
)
{
const
struct
src_regs
*
srcs
)
{
...
@@ -779,7 +786,7 @@ static const struct asmparser_backend parser_vs_1 = {
...
@@ -779,7 +786,7 @@ static const struct asmparser_backend parser_vs_1 = {
asmparser_dcl_output
,
asmparser_dcl_output
,
asmparser_dcl_input
,
asmparser_dcl_input
,
asmparser_dcl_sampler
,
asmparser_dcl_sampler
_unsupported
,
asmparser_end
,
asmparser_end
,
...
@@ -799,7 +806,7 @@ static const struct asmparser_backend parser_vs_2 = {
...
@@ -799,7 +806,7 @@ static const struct asmparser_backend parser_vs_2 = {
asmparser_dcl_output
,
asmparser_dcl_output
,
asmparser_dcl_input
,
asmparser_dcl_input
,
asmparser_dcl_sampler
,
asmparser_dcl_sampler
_unsupported
,
asmparser_end
,
asmparser_end
,
...
...
dlls/d3dx9_36/tests/asm.c
View file @
5a5844d4
...
@@ -1374,6 +1374,9 @@ static void failure_test(void) {
...
@@ -1374,6 +1374,9 @@ static void failure_test(void) {
/* shader 46: no tx registers in ps_3_0 */
/* shader 46: no tx registers in ps_3_0 */
"ps_3_0
\n
"
"ps_3_0
\n
"
"dcl t2
\n
"
,
"dcl t2
\n
"
,
/* shader 47: no samplers in vs_2_0 */
"vs_2_0
\n
"
"dcl_2d s2
\n
"
,
};
};
HRESULT
hr
;
HRESULT
hr
;
unsigned
int
i
;
unsigned
int
i
;
...
...
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