[Mesa-dev] [PATCH] radv: fix emitting the view index on GFX9

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Thu Jul 5 17:46:20 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Thu, Jul 5, 2018 at 6:56 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> For merged shaders, VS as HS for example.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> Cc: <mesa-stable at lists.freedesktop.org>
> ---
>  src/amd/vulkan/radv_cmd_buffer.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index b7519dce49..1ea023a811 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -3079,8 +3079,9 @@ static void radv_emit_view_index(struct radv_cmd_buffer *cmd_buffer, unsigned in
>  {
>         struct radv_pipeline *pipeline = cmd_buffer->state.pipeline;
>         for (unsigned stage = 0; stage < MESA_SHADER_STAGES; ++stage) {
> -               if (!pipeline->shaders[stage])
> +               if (!radv_get_shader(pipeline, stage))
>                         continue;
> +
>                 struct radv_userdata_info *loc = radv_lookup_user_sgpr(pipeline, stage, AC_UD_VIEW_INDEX);
>                 if (loc->sgpr_idx == -1)
>                         continue;
> --
> 2.18.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