st/nine: enable csmt per default on iris
authorAndre Heider <a.heider@gmail.com>
Wed, 20 Mar 2019 20:38:40 +0000 (21:38 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Mon, 25 Mar 2019 21:21:19 +0000 (22:21 +0100)
iris is thread safe, enable csmt for a ~5% performace boost.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/device9.c

index 24c8ce062b33f22c845022cc4004143f33d0860e..db1c3a1d23dfd470da6f91c240028827fb57416a 100644 (file)
@@ -266,13 +266,15 @@ NineDevice9_ctor( struct NineDevice9 *This,
     }
 
     /* Initialize CSMT */
+    /* r600, radeonsi and iris are thread safe. */
     if (pCTX->csmt_force == 1)
         This->csmt_active = true;
     else if (pCTX->csmt_force == 0)
         This->csmt_active = false;
-    else
-        /* r600 and radeonsi are thread safe. */
-        This->csmt_active = strstr(pScreen->get_name(pScreen), "AMD") != NULL;
+    else if (strstr(pScreen->get_name(pScreen), "AMD") != NULL)
+        This->csmt_active = true;
+    else if (strstr(pScreen->get_name(pScreen), "Intel") != NULL)
+        This->csmt_active = true;
 
     /* We rely on u_upload_mgr using persistent coherent buffers (which don't
      * require flush to work in multi-pipe_context scenario) for vertex and