summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-07-09 11:03:56 +0200
committerBas Nieuwenhuizen <[email protected]>2019-07-09 09:59:07 +0000
commit14291342ececdd91f25a7d945a4bbb3fa336218a (patch)
tree11d85784612c86d1f4239096f58c09b0e752f146 /src/amd/vulkan/radv_shader.h
parentf9070743a9273b8601af7955a58b604628dfcc8d (diff)
radv: Add a common member in the union to make things more clear.
This clarifies that the struct can be used when the shader can be one of VS/TES. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.h')
-rw-r--r--src/amd/vulkan/radv_shader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h
index f8933614bd7..8506aa1d9f0 100644
--- a/src/amd/vulkan/radv_shader.h
+++ b/src/amd/vulkan/radv_shader.h
@@ -118,6 +118,9 @@ struct radv_shader_variant_key {
struct radv_fs_variant_key fs;
struct radv_tes_variant_key tes;
struct radv_tcs_variant_key tcs;
+
+ /* A common prefix of the vs and tes keys. */
+ struct radv_vs_out_key vs_common_out;
};
bool has_multiview_view_index;
};