diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-30 15:14:35 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-30 16:51:30 +0200 |
commit | 9d7ead6f9bc8d13126127b17302d927b1f74cdbe (patch) | |
tree | dbc65e34a6188894a4c94a9835fcc5990dc3cb0a /src/amd/vulkan | |
parent | 5229f27f06db482d38846f0bff191a7c44b5368b (diff) |
radv/gfx10: only compile the GS copy shader on-demand
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 583b600dfdd..e11196bd82e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2626,7 +2626,8 @@ void radv_create_shaders(struct radv_pipeline *pipeline, if(modules[MESA_SHADER_GEOMETRY]) { struct radv_shader_binary *gs_copy_binary = NULL; - if (!pipeline->gs_copy_shader) { + if (!pipeline->gs_copy_shader && + !radv_pipeline_has_ngg(pipeline)) { pipeline->gs_copy_shader = radv_create_gs_copy_shader( device, nir[MESA_SHADER_GEOMETRY], &gs_copy_binary, keys[MESA_SHADER_GEOMETRY].has_multiview_view_index); |