[Mesa-stable] [Mesa-dev] [PATCH] radv: fix primitive reset index emission

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sun Mar 19 10:24:25 UTC 2017


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

On Sun, Mar 19, 2017 at 5:18 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This was meant to be checking the index type to get the correct
> index not the last emitted one. This fixes:
> dEQP-VK.pipeline.input_assembly.primitive_restart.index_type_uint32.triangle_strip_with_adjacency
>
> Cc: "13.0 17.0" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_cmd_buffer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index 17be0a1..ba192f3 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -2324,7 +2324,7 @@ void radv_CmdDraw(
>
>  static void radv_emit_primitive_reset_index(struct radv_cmd_buffer *cmd_buffer)
>  {
> -       uint32_t primitive_reset_index = cmd_buffer->state.last_primitive_reset_index ? 0xffffffffu : 0xffffu;
> +       uint32_t primitive_reset_index = cmd_buffer->state.index_type ? 0xffffffffu : 0xffffu;
>
>         if (cmd_buffer->state.pipeline->graphics.prim_restart_enable &&
>             primitive_reset_index != cmd_buffer->state.last_primitive_reset_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-stable mailing list