diff options
author | Dave Airlie <[email protected]> | 2017-01-20 09:55:37 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-01-31 09:30:10 +1000 |
commit | 99936d360610ee06fec5c29e73dd295402e2c357 (patch) | |
tree | 2fe08e578d88806e74d7630c0fc7ffc7e2de115b /src/amd/vulkan/radv_pipeline_cache.c | |
parent | fd4ea9e62d9a89e58c22c77758adcfd193f172ec (diff) |
radv: add pipeline creation support for geometry shaders (v2.1)
This adds gs copy shader support to the pipeline cache, and few
geometry related changes.
v2: rebase for spill changes.
v2.1: fix incorrect pipeline destruction.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline_cache.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline_cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c index 2cb1dfb6eb0..7fc4e781ac3 100644 --- a/src/amd/vulkan/radv_pipeline_cache.c +++ b/src/amd/vulkan/radv_pipeline_cache.c @@ -88,7 +88,8 @@ radv_hash_shader(unsigned char *hash, struct radv_shader_module *module, const char *entrypoint, const VkSpecializationInfo *spec_info, const struct radv_pipeline_layout *layout, - const union ac_shader_variant_key *key) + const union ac_shader_variant_key *key, + uint32_t is_geom_copy_shader) { struct mesa_sha1 *ctx; @@ -104,6 +105,7 @@ radv_hash_shader(unsigned char *hash, struct radv_shader_module *module, spec_info->mapEntryCount * sizeof spec_info->pMapEntries[0]); _mesa_sha1_update(ctx, spec_info->pData, spec_info->dataSize); } + _mesa_sha1_update(ctx, &is_geom_copy_shader, 4); _mesa_sha1_final(ctx, hash); } |