radeonsi: don't set DX10_DIAMOND_TEST_ENA for better performance

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13093>
This commit is contained in:
Marek Olšák 2021-09-26 10:18:28 -04:00
parent 1898ee5493
commit 049c366378
2 changed files with 4 additions and 3 deletions

View 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

View 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) {