Revert "frontends/va: Also map VAImageBufferType for reading"
authorLeo Liu <leo.liu@amd.com>
Fri, 8 Sep 2023 18:58:43 +0000 (14:58 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 18:40:30 +0000 (18:40 +0000)
commit8c8985390d02cd87cfd07c953b00ad3940064ee9
tree7bc0937df242964f06c3ff766801a82f11d10b4b
parent7eabe9bb40da0779922c0b4dc91ed320baf8b3cc
Revert "frontends/va: Also map VAImageBufferType for reading"

This reverts commit 12a4f2c1328f31954f9bf70d255f9d3e7bb010d4.

With PIPE_MAP_READ_WRITE and derived image, the encoder will copy
to and from staging buffer for each frame, which caused performance
degradation, even worse than putImage.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25128>
src/gallium/frontends/va/buffer.c