radeonsi: don't set DX10_DIAMOND_TEST_ENA for better performance
authorMarek Olšák <marek.olsak@amd.com>
Sun, 26 Sep 2021 14:18:28 +0000 (10:18 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 28 Sep 2021 23:34:07 +0000 (19:34 -0400)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13093>

src/gallium/drivers/radeonsi/ci/traces-radeonsi.yml
src/gallium/drivers/radeonsi/si_state.c

index bab64cd..b2e46f3 100644 (file)
@@ -193,7 +193,7 @@ traces:
   - path: gputest/plot3d.trace
     expectations:
       - device: gl-radeonsi-stoney
-        checksum: 203c0c186a8eab5fbb8753ec25848b53
+        checksum: a62be186a3e0a33ecbd520edd3873eb1
   - path: gputest/tessmark.trace
     expectations:
       - device: gl-radeonsi-stoney
index 35b64de..2f179e9 100644 (file)
@@ -3588,14 +3588,15 @@ static void si_emit_msaa_config(struct si_context *sctx)
       }
    }
 
-   /* Required by OpenGL line rasterization.
+   /* The DX10 diamond test is optional in GL and decreases line rasterization
+    * performance, so don't use it.
     *
     * TODO: We should also enable perpendicular endcaps for AA lines,
     *       but that requires implementing line stippling in the pixel
     *       shader. SC can only do line stippling with axis-aligned
     *       endcaps.
     */
-   unsigned sc_line_cntl = S_028BDC_DX10_DIAMOND_TEST_ENA(1);
+   unsigned sc_line_cntl = 0;
    unsigned sc_aa_config = 0;
 
    if (coverage_samples > 1) {