d3d9: Always allow read and write map access to non-DEFAULT buffers.
commit9d9dd8b378b84e125f877a1c675c5b9a5ffa673f
authorMatteo Bruni <mbruni@codeweavers.com>
Mon, 13 May 2019 18:34:18 +0000 (13 20:34 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 14 May 2019 18:13:59 +0000 (14 20:13 +0200)
tree478d9c4e396fb77e6991347b6e3c177336f247af
parent3724e9c4abb43a7e5a044bcc17010660d55c4ff3
d3d9: Always allow read and write map access to non-DEFAULT buffers.

D3d9 is very lax WRT map access to buffers and there isn't really much
of a reason for us to restrict read access to non-DEFAULT resources.

On the other hand, we'd still really like to be able to ensure that
DEFAULT, DYNAMIC | WRITEONLY buffers get allocated in the proper
memory region and get efficient data uploads, so keep the restriction
for DEFAULT resources.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46849
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d9/buffer.c