i965: Use brw_batch_references in tex_busy check
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jan 2020 08:22:02 +0000 (00:22 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jan 2020 10:01:21 +0000 (10:01 +0000)
commitbdba744d700717a123232cf24647f11918fc0dcd
treefec2659935712cd536f9d664f9db8bc4bf9c9988
parentd3fa18a1fa2b36e90c52e0f5809900dadf80d83f
i965: Use brw_batch_references in tex_busy check

If the batch references the buffer, we will have to flush the batch
immediately before mapping it, at which point it will be busy.

(This bug has existed for a long time...even going back to BLT-era...)

Fixes: 779923194c6 ("i965/tex_image: Use meta for instead of the blitter PBO TexImage and GetTexImage")
Fixes: d5d4ba9139a ("i965/tex_subimage: use meta instead of the blitter for PBO TexSubImage")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3616>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3616>
src/mesa/drivers/dri/i965/intel_tex_image.c