mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
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:
parent
afc4ebdcc0
commit
552fdc7ea4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue