[Mesa-dev] [PATCH] radv/gfx10: only compile the GS copy shader on-demand

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Jul 30 14:29:00 UTC 2019


r-b

On Tue, Jul 30, 2019 at 3:11 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_pipeline.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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);
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list