We should be using the API size to clamp, rather than what we allocated
the BO into.
Fixes: #13
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15198>
bool isint = util_format_is_pure_integer(pfmt);
uint32_t fs = util_format_get_blocksize(pfmt);
uint32_t off = vb->buffer_offset + elem->src_offset;
- uint32_t size = fd_bo_size(rsc->bo) - off;
+ uint32_t size = vb->buffer.resource->width0 - off;
debug_assert(fmt != VFMT4_NONE);
#ifdef DEBUG
enum a5xx_vtx_fmt fmt = fd5_pipe2vtx(pfmt);
bool isint = util_format_is_pure_integer(pfmt);
uint32_t off = vb->buffer_offset + elem->src_offset;
- uint32_t size = fd_bo_size(rsc->bo) - off;
+ uint32_t size = vb->buffer.resource->width0 - off;
debug_assert(fmt != VFMT5_NONE);
#ifdef DEBUG
OUT_RING(ring, 0);
} else {
uint32_t off = vb->buffer_offset;
- uint32_t size = fd_bo_size(rsc->bo) - off;
+ uint32_t size = vb->buffer.resource->width0 - off;
OUT_RELOC(ring, rsc->bo, off, 0, 0);
OUT_RING(ring, size); /* VFD_FETCH[j].SIZE */