Posted February 21, 2020
vv221: If the performance issues I get are related to this WINE bug, it would only affect The Legend, using WINE ≥ 2.11.
That’s what I’m trying to learn by gathering feedback, as for now I’m not absolutely sure this is indeed this bug I experienced.
Best thing would be to compile current Wine with that hack. That would tell you if that's the only problem current Wine has with it. Looks like there was a minor refactor and it doesn't apply directly, but presumably the following would do it with current git: That’s what I’m trying to learn by gathering feedback, as for now I’m not absolutely sure this is indeed this bug I experienced.
---
dlls/wined3d/resource.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index bbb892b328..d7eb077531 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -337,11 +337,6 @@ static DWORD wined3d_resource_sanitise_map_flags(const struct wined3d_resource *
}
else if (flags & (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
{
- if (!(resource->usage & WINED3DUSAGE_DYNAMIC))
- {
- WARN("DISCARD or NOOVERWRITE map on non-dynamic buffer, ignoring.\n");
- return flags & (WINED3D_MAP_READ | WINED3D_MAP_WRITE);
- }
if ((flags & (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
== (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
{
--
dlls/wined3d/resource.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index bbb892b328..d7eb077531 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -337,11 +337,6 @@ static DWORD wined3d_resource_sanitise_map_flags(const struct wined3d_resource *
}
else if (flags & (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
{
- if (!(resource->usage & WINED3DUSAGE_DYNAMIC))
- {
- WARN("DISCARD or NOOVERWRITE map on non-dynamic buffer, ignoring.\n");
- return flags & (WINED3D_MAP_READ | WINED3D_MAP_WRITE);
- }
if ((flags & (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
== (WINED3D_MAP_DISCARD | WINED3D_MAP_NOOVERWRITE))
{
--
Post edited February 21, 2020 by Gydion