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
4ccffd8f
Commit
4ccffd8f
authored
Sep 18, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Don't write the shader version tag from the header backend function.
parent
e7a9218e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
bytecodewriter.c
dlls/d3dcompiler_43/bytecodewriter.c
+3
-18
No files found.
dlls/d3dcompiler_43/bytecodewriter.c
View file @
4ccffd8f
...
...
@@ -744,12 +744,8 @@ static void vs_1_x_header(struct bc_writer *This, const struct bwriter_shader *s
return
;
}
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_declarations
(
This
,
buffer
,
FALSE
,
shader
->
inputs
,
shader
->
num_inputs
,
BWRITERSPR_INPUT
);
write_constF
(
shader
,
buffer
,
FALSE
);
return
;
}
static
HRESULT
find_ps_builtin_semantics
(
struct
bc_writer
*
This
,
...
...
@@ -826,8 +822,6 @@ static void ps_1_x_header(struct bc_writer *This, const struct bwriter_shader *s
return
;
}
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_constF
(
shader
,
buffer
,
FALSE
);
}
...
...
@@ -847,8 +841,6 @@ static void ps_1_4_header(struct bc_writer *This, const struct bwriter_shader *s
return
;
}
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_constF
(
shader
,
buffer
,
FALSE
);
}
...
...
@@ -1595,14 +1587,10 @@ static void vs_2_header(struct bc_writer *This,
return
;
}
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_declarations
(
This
,
buffer
,
TRUE
,
shader
->
inputs
,
shader
->
num_inputs
,
BWRITERSPR_INPUT
);
write_constF
(
shader
,
buffer
,
TRUE
);
write_constB
(
shader
,
buffer
,
TRUE
);
write_constI
(
shader
,
buffer
,
TRUE
);
return
;
}
static
void
vs_2_srcreg
(
struct
bc_writer
*
This
,
...
...
@@ -1875,8 +1863,6 @@ static void ps_2_header(struct bc_writer *This, const struct bwriter_shader *sha
return
;
}
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_declarations
(
This
,
buffer
,
TRUE
,
shader
->
inputs
,
shader
->
num_inputs
,
BWRITERSPR_INPUT
);
write_samplers
(
shader
,
buffer
);
write_constF
(
shader
,
buffer
,
TRUE
);
...
...
@@ -2112,16 +2098,12 @@ static const struct bytecode_backend ps_2_x_backend = {
};
static
void
sm_3_header
(
struct
bc_writer
*
This
,
const
struct
bwriter_shader
*
shader
,
struct
bytecode_buffer
*
buffer
)
{
/* Declare the shader type and version */
put_dword
(
buffer
,
This
->
version
);
write_declarations
(
This
,
buffer
,
TRUE
,
shader
->
inputs
,
shader
->
num_inputs
,
BWRITERSPR_INPUT
);
write_declarations
(
This
,
buffer
,
TRUE
,
shader
->
outputs
,
shader
->
num_outputs
,
BWRITERSPR_OUTPUT
);
write_constF
(
shader
,
buffer
,
TRUE
);
write_constB
(
shader
,
buffer
,
TRUE
);
write_constI
(
shader
,
buffer
,
TRUE
);
write_samplers
(
shader
,
buffer
);
return
;
}
static
void
sm_3_srcreg
(
struct
bc_writer
*
This
,
...
...
@@ -2571,6 +2553,9 @@ HRESULT SlWriteBytecode(const struct bwriter_shader *shader, int dxversion, DWOR
goto
error
;
}
/* Write shader type and version */
put_dword
(
buffer
,
shader
->
version
);
writer
->
funcs
->
header
(
writer
,
shader
,
buffer
);
if
(
FAILED
(
writer
->
state
))
{
hr
=
writer
->
state
;
...
...
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