radv: Invert ring SGPR check.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 19 Feb 2017 02:35:02 +0000 (03:35 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 19 Feb 2017 09:13:11 +0000 (10:13 +0100)
I assume this wants to check if all pipelines use the same SGPR for
the rings.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/amd/vulkan/radv_cmd_buffer.c

index 75149c5ba1a522c45f9d59974738356ab30d4925..57d55b34e366a9d8e73594489f9aa0443c5c73a2 100644 (file)
@@ -1900,7 +1900,7 @@ void radv_CmdBindPipeline(
                        if (cmd_buffer->ring_offsets_idx == -1)
                                cmd_buffer->ring_offsets_idx = loc->sgpr_idx;
                        else if (loc->sgpr_idx != -1)
-                               assert(loc->sgpr_idx != cmd_buffer->ring_offsets_idx);
+                               assert(loc->sgpr_idx == cmd_buffer->ring_offsets_idx);
                }
                break;
        default: