From 3a443daed06a55268e184f4f492e40e24bc85a99 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 19 May 2021 17:48:25 -0400 Subject: [PATCH] panfrost: Update comment Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index a6e6c1b..78e9d2f 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -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 */ -- 2.7.4