[Mesa-dev] [PATCH 10/12] st/nine: Reduce MaxSimultaneousTextures to 8

Axel Davy davyaxel0 at gmail.com
Wed Oct 24 18:54:03 UTC 2018


Windows drivers don't set this flag (which affects ff) to more than 8.

Do the same in case some games check for 8.

Signed-off-by: Axel Davy <davyaxel0 at gmail.com>
---
 src/gallium/state_trackers/nine/adapter9.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c
index 2fa92e4207b..ec18d21a94d 100644
--- a/src/gallium/state_trackers/nine/adapter9.c
+++ b/src/gallium/state_trackers/nine/adapter9.c
@@ -791,8 +791,8 @@ NineAdapter9_GetDeviceCaps( struct NineAdapter9 *This,
         (DWORD)screen->get_param(screen, PIPE_CAP_BLEND_EQUATION_SEPARATE);
     pCaps->MaxSimultaneousTextures = screen->get_shader_param(screen,
         PIPE_SHADER_FRAGMENT, PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS);
-    if (pCaps->MaxSimultaneousTextures > NINE_MAX_SAMPLERS_PS)
-        pCaps->MaxSimultaneousTextures = NINE_MAX_SAMPLERS_PS;
+    if (pCaps->MaxSimultaneousTextures > 8)
+        pCaps->MaxSimultaneousTextures = 8;
 
     pCaps->VertexProcessingCaps = D3DVTXPCAPS_TEXGEN |
                                   D3DVTXPCAPS_TEXGEN_SPHEREMAP |
-- 
2.19.1



More information about the mesa-dev mailing list