v3d: Fix blitting from a linear winsys BO.
authorEric Anholt <eric@anholt.net>
Mon, 18 Jun 2018 22:46:53 +0000 (15:46 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 19 Jun 2018 16:42:20 +0000 (09:42 -0700)
commitda0115b1c37e263773fb56dc28fbd22eb0f66811
treedccbf3f277a313253f78d4887892c7c4af84bbc3
parent07b243674f2358e3e291864062068d1fb049f736
v3d: Fix blitting from a linear winsys BO.

This is the case for the simulator environment, and broke many blitter
tests by trying to texture from linear while the HW can only actually do
UIF/UBLINEAR/LT.  Just make a temporary and copy into it with the CPU,
then blit from that.

This is the kind of path that should use the TFU, but I haven't exposed
that hardware yet.

Fixes dEQP-GLES3.functional.fbo.blit.default_framebuffer.*
src/gallium/drivers/v3d/v3d_blit.c