Matteo Bruni : wined3d: Always report support for ZBIAS and MIPMAPLODBIAS raster caps in the Vulkan backend.

Alexandre Julliard julliard at winehq.org
Thu May 16 16:26:58 CDT 2019


Module: wine
Branch: master
Commit: 0f209a930112ea3a3e3f7fc3292072ac8fab9446
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0f209a930112ea3a3e3f7fc3292072ac8fab9446

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed May 15 23:39:31 2019 +0200

wined3d: Always report support for ZBIAS and MIPMAPLODBIAS raster caps in the Vulkan backend.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/adapter_vk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/adapter_vk.c b/dlls/wined3d/adapter_vk.c
index b8d94a0..57235bb 100644
--- a/dlls/wined3d/adapter_vk.c
+++ b/dlls/wined3d/adapter_vk.c
@@ -337,11 +337,11 @@ static void adapter_vk_get_wined3d_caps(const struct wined3d_adapter *adapter, s
             | WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS
             | WINED3DPMISCCAPS_POSTBLENDSRGBCONVERT;
 
+    caps->RasterCaps |= WINED3DPRASTERCAPS_ZBIAS | WINED3DPRASTERCAPS_MIPMAPLODBIAS;
+
     if (sampler_anisotropy)
     {
-        caps->RasterCaps |= WINED3DPRASTERCAPS_ANISOTROPY
-                | WINED3DPRASTERCAPS_ZBIAS
-                | WINED3DPRASTERCAPS_MIPMAPLODBIAS;
+        caps->RasterCaps |= WINED3DPRASTERCAPS_ANISOTROPY;
 
         caps->TextureFilterCaps |= WINED3DPTFILTERCAPS_MAGFANISOTROPIC
                 | WINED3DPTFILTERCAPS_MINFANISOTROPIC;




More information about the wine-cvs mailing list