panfrost: Fix src_offset data type
We treat it as signed but had it marked as unsigned. It can be negative in obscure cases. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
committed by
Marge Bot
parent
afc4ebdcc0
commit
552fdc7ea4
@@ -1821,7 +1821,7 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
|
||||
struct pipe_vertex_buffer *buf = &ctx->vertex_buffers[vbi];
|
||||
|
||||
/* BOs are aligned; just fixup for buffer_offset */
|
||||
unsigned src_offset = so->pipe[i].src_offset;
|
||||
signed src_offset = so->pipe[i].src_offset;
|
||||
src_offset += (buf->buffer_offset & 63);
|
||||
|
||||
/* Base instance offset */
|
||||
|
||||
Reference in New Issue
Block a user