freedreno/drm: fix relocs in nested stateobjs
authorRob Clark <robdclark@gmail.com>
Wed, 28 Nov 2018 15:35:32 +0000 (10:35 -0500)
committerRob Clark <robdclark@gmail.com>
Fri, 7 Dec 2018 18:49:21 +0000 (13:49 -0500)
commite779725f0b4bf50ab700cc000ed928b94d21c18f
treedad154b4674cd35e49dc8b94e94a477f4b101f38
parent9f7c6c78bc9d419aebe0baf69e1ef7b9c4f66b80
freedreno/drm: fix relocs in nested stateobjs

If we have an reloc from stateobjA to stateobjB, we would previously
leave stateobjB's bos out of the submit's bos table.  Handle this case
by copying into stateobjA's reloc_bos table.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/drm/msm_ringbuffer_sp.c