OSDN Git Service

freedreno/a6xx: fix resource_copy_region()
authorRob Clark <robdclark@gmail.com>
Thu, 13 Dec 2018 14:15:33 +0000 (09:15 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 13 Dec 2018 20:51:01 +0000 (15:51 -0500)
commit0ac5acaeaaa651d850d77ebab094fa851a7ee06d
treed7a7bd0c36deb86dd35996a93c103aff60d60414
parent4ec2f6129b9283d81b5dc8d95d304b243ec5145c
freedreno/a6xx: fix resource_copy_region()

pctx->resource_copy_region() needs to fall back to sw copy for
non-renderable formats.  But previously for things that we could
not use the blitter for, would fall back to 3d.  Which won't work
if 3d can't render to the dst format either.

Instead rework things to fallback to fd_resource_copy_region(),
which will try 3d core and then fall back to memcpy().

Fixes (for example) dEQP-GLES3.functional.texture.format.sized.2d.rgb9_e5_pot

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c