Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Merge requests
!155
Minor vkd3d_shader_parser related cleanups.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Minor vkd3d_shader_parser related cleanups.
hverbeet/vkd3d:for_upstream_0
into
master
Overview
0
Commits
6
Pipelines
2
Changes
1
Merged
Henri Verbeet
requested to merge
hverbeet/vkd3d:for_upstream_0
into
master
1 year ago
Overview
0
Commits
6
Pipelines
2
Changes
1
Expand
Merge request reports
Viewing commit
1b7b6941
Prev
Next
Show latest version
1 file
+
2
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1b7b6941
vkd3d-shader/sm1: Pass a vkd3d_shader_sm1_parser structure to shader_sm1_is_end().
· 1b7b6941
Henri Verbeet
authored
1 year ago
libs/vkd3d-shader/d3dbc.c
+
2
−
3
Options
@@ -851,9 +851,8 @@ fail:
*
ptr
=
sm1
->
end
;
}
static
bool
shader_sm1_is_end
(
struct
vkd3d_shader_parser
*
parser
)
static
bool
shader_sm1_is_end
(
struct
vkd3d_shader_
sm1_
parser
*
sm1
)
{
struct
vkd3d_shader_sm1_parser
*
sm1
=
vkd3d_shader_sm1_parser
(
parser
);
const
uint32_t
**
ptr
=
&
sm1
->
ptr
;
shader_sm1_read_comment
(
sm1
);
@@ -964,7 +963,7 @@ int vkd3d_shader_sm1_parser_create(const struct vkd3d_shader_compile_info *compi
}
instructions
=
&
sm1
->
p
.
instructions
;
while
(
!
shader_sm1_is_end
(
&
sm1
->
p
))
while
(
!
shader_sm1_is_end
(
sm1
))
{
if
(
!
shader_instruction_array_reserve
(
instructions
,
instructions
->
count
+
1
))
{
Loading