Mesa (main): panfrost: Update comment
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 1 19:26:48 UTC 2021
Module: Mesa
Branch: main
Commit: 3a443daed06a55268e184f4f492e40e24bc85a99
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a443daed06a55268e184f4f492e40e24bc85a99
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Wed May 19 17:48:25 2021 -0400
panfrost: Update comment
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>
---
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 a6e6c1b21fa..78e9d2fcb8c 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 */
More information about the mesa-commit
mailing list