[Mesa-dev] [PATCH 05/75] st/nine: Disable seamless cubemap for d3d

Axel Davy axel.davy at ens.fr
Wed Oct 5 20:08:38 UTC 2016


d3d9 doesn't have seamless cubemap.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/device9.c   | 2 +-
 src/gallium/state_trackers/nine/nine_pipe.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index 230ad02..f2317b6 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -402,7 +402,7 @@ NineDevice9_ctor( struct NineDevice9 *This,
         samp.compare_mode = PIPE_TEX_COMPARE_NONE;
         samp.compare_func = PIPE_FUNC_LEQUAL;
         samp.normalized_coords = 1;
-        samp.seamless_cube_map = 1;
+        samp.seamless_cube_map = 0;
         This->dummy_sampler_state = samp;
     }
 
diff --git a/src/gallium/state_trackers/nine/nine_pipe.c b/src/gallium/state_trackers/nine/nine_pipe.c
index c1814fe..ea7dc16 100644
--- a/src/gallium/state_trackers/nine/nine_pipe.c
+++ b/src/gallium/state_trackers/nine/nine_pipe.c
@@ -231,7 +231,7 @@ nine_convert_sampler_state(struct cso_context *ctx, int idx, const DWORD *ss)
     samp.compare_mode = ss[NINED3DSAMP_SHADOW] ? PIPE_TEX_COMPARE_R_TO_TEXTURE : PIPE_TEX_COMPARE_NONE;
     samp.compare_func = PIPE_FUNC_LEQUAL;
     samp.normalized_coords = 1;
-    samp.seamless_cube_map = 1;
+    samp.seamless_cube_map = 0;
     d3dcolor_to_pipe_color_union(&samp.border_color, ss[D3DSAMP_BORDERCOLOR]);
 
     /* see nine_state.h */
-- 
2.10.0



More information about the mesa-dev mailing list