[Mesa-dev] [PATCH] radv: disable vertex reuse when writing viewport index

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Jan 17 20:44:38 UTC 2017


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

On Tue, Jan 17, 2017 at 9:27 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes some issues we'd hit later if using viewport
> indexes.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_cmd_buffer.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index 27fa405..c6f238b 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -511,6 +511,8 @@ radv_emit_vertex_shader(struct radv_cmd_buffer *cmd_buffer,
>                                cull_dist_mask << 8 |
>                                clip_dist_mask);
>
> +       radeon_set_context_reg(cmd_buffer->cs, R_028AB4_VGT_REUSE_OFF,
> +                              S_028AB4_REUSE_OFF(vs->info.vs.writes_viewport_index));
>  }
>
>
> --
> 2.9.3
>
> _______________________________________________
> 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