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
a0ed7434
Commit
a0ed7434
authored
Dec 03, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/preshader: Set input table size for texture shaders.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
95845e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
preshader.c
dlls/d3dx9_36/preshader.c
+7
-2
No files found.
dlls/d3dx9_36/preshader.c
View file @
a0ed7434
...
...
@@ -144,6 +144,7 @@ static double pres_div(double *args, int n) {return 0.0;}
#define FOURCC_CLIT 0x54494c43
#define FOURCC_FXLC 0x434c5846
#define FOURCC_PRSI 0x49535250
#define FOURCC_TX_1 0x54580100
#define PRES_SIGN 0x46580000
struct
op_info
...
...
@@ -1110,13 +1111,15 @@ static HRESULT parse_preshader(struct d3dx_preshader *pres, unsigned int *ptr, u
struct
d3dx_parameters_store
*
parameters
)
{
unsigned
int
*
p
;
unsigned
int
i
,
j
,
const_count
;
unsigned
int
i
,
j
,
const_count
,
magic
;
double
*
dconst
;
HRESULT
hr
;
unsigned
int
saved_word
;
unsigned
int
section_size
;
TRACE
(
"Preshader version %#x.
\n
"
,
*
ptr
&
0xffff
);
magic
=
*
ptr
;
TRACE
(
"Preshader version %#x.
\n
"
,
*
ptr
);
if
(
!
count
)
{
...
...
@@ -1186,6 +1189,8 @@ static HRESULT parse_preshader(struct d3dx_preshader *pres, unsigned int *ptr, u
return
D3DXERR_INVALIDDATA
;
}
pres
->
regs
.
table_sizes
[
PRES_REGTAB_IMMED
]
=
get_reg_offset
(
PRES_REGTAB_IMMED
,
const_count
);
if
(
magic
==
FOURCC_TX_1
)
pres
->
regs
.
table_sizes
[
PRES_REGTAB_INPUT
]
=
2
;
update_table_sizes_consts
(
pres
->
regs
.
table_sizes
,
&
pres
->
inputs
);
for
(
i
=
0
;
i
<
pres
->
ins_count
;
++
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