Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
virgl-es
mesa
Commits
f2c6a550
Commit
f2c6a550
authored
Mar 06, 2018
by
Daniel Schürmann
Committed by
Bas Nieuwenhuizen
Apr 14, 2018
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radv: enable subgroup capabilities
Reviewed-by:
Bas Nieuwenhuizen
<
bas@basnieuwenhuizen.nl
>
parent
4b0616e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_device.c
+8
-2
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.c
+6
-1
No files found.
src/amd/vulkan/radv_device.c
View file @
f2c6a550
...
...
@@ -940,8 +940,14 @@ void radv_GetPhysicalDeviceProperties2(
(
VkPhysicalDeviceSubgroupProperties
*
)
ext
;
properties
->
subgroupSize
=
64
;
properties
->
supportedStages
=
VK_SHADER_STAGE_ALL
;
properties
->
supportedOperations
=
VK_SUBGROUP_FEATURE_BASIC_BIT
;
properties
->
quadOperationsInAllStages
=
false
;
properties
->
supportedOperations
=
VK_SUBGROUP_FEATURE_BASIC_BIT
|
VK_SUBGROUP_FEATURE_BALLOT_BIT
|
VK_SUBGROUP_FEATURE_QUAD_BIT
|
VK_SUBGROUP_FEATURE_SHUFFLE_BIT
|
VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT
|
VK_SUBGROUP_FEATURE_VOTE_BIT
;
properties
->
quadOperationsInAllStages
=
true
;
break
;
}
case
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES
:
{
...
...
src/amd/vulkan/radv_shader.c
View file @
f2c6a550
...
...
@@ -213,7 +213,11 @@ radv_shader_compile_to_nir(struct radv_device *device,
.
tessellation
=
true
,
.
int64
=
true
,
.
multiview
=
true
,
.
subgroup_ballot
=
true
,
.
subgroup_basic
=
true
,
.
subgroup_quad
=
true
,
.
subgroup_shuffle
=
true
,
.
subgroup_vote
=
true
,
.
variable_pointers
=
true
,
.
gcn_shader
=
true
,
.
trinary_minmax
=
true
,
...
...
@@ -283,7 +287,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
.
lower_to_scalar
=
1
,
.
lower_subgroup_masks
=
1
,
.
lower_shuffle
=
1
,
.
lower_quad
=
1
,
.
lower_shuffle_to_32bit
=
1
,
.
lower_vote_eq_to_ballot
=
1
,
});
radv_optimize_nir
(
nir
);
...
...
Jakob Bornecrantz
@jakob
mentioned in commit
c2799574
·
May 30, 2018
mentioned in commit
c2799574
mentioned in commit c2799574eb104218ac4f6b8a3d64b8a0f8c89525
Toggle commit list
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