mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
freedreno/a6xx: fix debug build crash
Porting 0c8d9e923a to a6xx.
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
d25a27ec56
commit
6b4397feab
1 changed files with 7 additions and 0 deletions
|
|
@ -522,6 +522,13 @@ fd6_emit_vertex_bufs(struct fd_ringbuffer *ring, struct fd6_emit *emit)
|
|||
uint32_t size = fd_bo_size(rsc->bo) - off;
|
||||
debug_assert(fmt != ~0);
|
||||
|
||||
#ifdef DEBUG
|
||||
/* see dEQP-GLES31.stress.vertex_attribute_binding.buffer_bounds.bind_vertex_buffer_offset_near_wrap_10
|
||||
*/
|
||||
if (off > fd_bo_size(rsc->bo))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
OUT_PKT4(ring, REG_A6XX_VFD_FETCH(j), 4);
|
||||
OUT_RELOC(ring, rsc->bo, off, 0, 0);
|
||||
OUT_RING(ring, size); /* VFD_FETCH[j].SIZE */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue