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
Commits
77259da1
Commit
77259da1
authored
10 months ago
by
Conor McCarthy
Committed by
Alexandre Julliard
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
vkd3d-shader/spirv: Implement the WAVE_PREFIX_BIT_COUNT instruction.
parent
2810edf4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!856
vkd3d-shader/dxil: Wave ops part 3.
Pipeline
#26332
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libs/vkd3d-shader/spirv.c
+3
-1
3 additions, 1 deletion
libs/vkd3d-shader/spirv.c
tests/hlsl/wave-ops-uint.shader_test
+1
-1
1 addition, 1 deletion
tests/hlsl/wave-ops-uint.shader_test
with
4 additions
and
2 deletions
libs/vkd3d-shader/spirv.c
+
3
−
1
View file @
77259da1
...
...
@@ -9902,7 +9902,8 @@ static void spirv_compiler_emit_wave_bit_count(struct spirv_compiler *compiler,
SpvGroupOperation
group_op
;
uint32_t
type_id
,
val_id
;
group_op
=
SpvGroupOperationReduce
;
group_op
=
(
instruction
->
handler_idx
==
VKD3DSIH_WAVE_PREFIX_BIT_COUNT
)
?
SpvGroupOperationExclusiveScan
:
SpvGroupOperationReduce
;
val_id
=
spirv_compiler_emit_group_nonuniform_ballot
(
compiler
,
instruction
->
src
);
type_id
=
vkd3d_spirv_get_type_id
(
builder
,
VKD3D_SHADER_COMPONENT_UINT
,
1
);
...
...
@@ -10288,6 +10289,7 @@ static int spirv_compiler_handle_instruction(struct spirv_compiler *compiler,
spirv_compiler_emit_wave_alu_op
(
compiler
,
instruction
);
break
;
case
VKD3DSIH_WAVE_ALL_BIT_COUNT
:
case
VKD3DSIH_WAVE_PREFIX_BIT_COUNT
:
spirv_compiler_emit_wave_bit_count
(
compiler
,
instruction
);
break
;
case
VKD3DSIH_WAVE_IS_FIRST_LANE
:
...
...
This diff is collapsed.
Click to expand it.
tests/hlsl/wave-ops-uint.shader_test
+
1
−
1
View file @
77259da1
...
...
@@ -196,7 +196,7 @@ void main(uint id : SV_GroupIndex)
}
[test]
todo
dispatch 4 1 1
dispatch 4 1 1
probe uav 1 (0) rui (0)
probe uav 1 (1) rui (1)
probe uav 1 (2) rui (1)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment