draw: fix so debug offset printing
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 24 Jul 2023 14:44:26 +0000 (10:44 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 10:44:03 +0000 (10:44 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24568>

src/gallium/auxiliary/draw/draw_pt_so_emit.c

index cef6b00..976089e 100644 (file)
@@ -210,7 +210,7 @@ so_emit_prim(struct pt_so_emit *so,
          {
             debug_printf("VERT[%d], stream = %d, offset = %d, slot[%d] sc = %d, num_c = %d, idx = %d = [",
                          i, stream,
-                         draw->so.targets[ob]->internal_offset,
+                         draw->so.targets[ob]->internal_offset + (4 * state->output[slot].dst_offset),
                          slot, start_comp, num_comps, idx);
             for (unsigned j = 0; j < num_comps; ++j) {
                unsigned *ubuffer = (unsigned*)buffer;