panfrost: Update comment
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 19 May 2021 21:48:25 +0000 (17:48 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 19:10:28 +0000 (19:10 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>

src/gallium/drivers/panfrost/pan_cmdstream.c

index a6e6c1b..78e9d2f 100644 (file)
@@ -1749,13 +1749,8 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
                 unsigned vbi = so->pipe[i].vertex_buffer_index;
                 struct pipe_vertex_buffer *buf = &ctx->vertex_buffers[vbi];
 
-                /* Adjust by the masked off bits of the offset. Make sure we
-                 * read src_offset from so->hw (which is not GPU visible)
-                 * rather than target (which is) due to caching effects */
-
+                /* BOs are aligned; just fixup for buffer_offset */
                 unsigned src_offset = so->pipe[i].src_offset;
-
-                /* BOs aligned to 4k so guaranteed aligned to 64 */
                 src_offset += (buf->buffer_offset & 63);
 
                 /* Base instance offset */