mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
freedreno/a3xx: fix VFD_INDEX_MAX overflow
max_index may be 0xffffffff. The hardware does not need 1 + max_index (although it does not hurt unless max_index wraps around to zero). Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
c756a3ef70
commit
d7be322410
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ fd3_draw(struct fd_context *ctx, const struct pipe_draw_info *info)
|
|||
|
||||
OUT_PKT0(ring, REG_A3XX_VFD_INDEX_MIN, 4);
|
||||
OUT_RING(ring, info->min_index); /* VFD_INDEX_MIN */
|
||||
OUT_RING(ring, info->max_index + 1); /* VFD_INDEX_MAX */
|
||||
OUT_RING(ring, info->max_index); /* VFD_INDEX_MAX */
|
||||
OUT_RING(ring, info->start_instance); /* VFD_INSTANCEID_OFFSET */
|
||||
OUT_RING(ring, info->start); /* VFD_INDEX_OFFSET */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue