radeonsi: enable full out-of-order drawing when allow_draw_out_of_order is set
authorMarek Olšák <marek.olsak@amd.com>
Mon, 23 Mar 2020 18:50:53 +0000 (14:50 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 26 Mar 2020 07:08:34 +0000 (03:08 -0400)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4152>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4152>

src/gallium/drivers/radeonsi/si_pipe.c

index 157a1982d3708a2c3b05a4d10de1c3fff5b440d0..90e05a590f36454875eb6cae94cdbef66a8b82d8 100644 (file)
@@ -1185,9 +1185,11 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws,
        sscreen->has_out_of_order_rast = sscreen->info.has_out_of_order_rast &&
                                         !(sscreen->debug_flags & DBG(NO_OUT_OF_ORDER));
        sscreen->assume_no_z_fights =
-               driQueryOptionb(config->options, "radeonsi_assume_no_z_fights");
+               driQueryOptionb(config->options, "radeonsi_assume_no_z_fights") ||
+               driQueryOptionb(config->options, "allow_draw_out_of_order");
        sscreen->commutative_blend_add =
-               driQueryOptionb(config->options, "radeonsi_commutative_blend_add");
+               driQueryOptionb(config->options, "radeonsi_commutative_blend_add") ||
+               driQueryOptionb(config->options, "allow_draw_out_of_order");
 
        sscreen->use_ngg = sscreen->info.chip_class >= GFX10 &&
                           sscreen->info.family != CHIP_NAVI14 &&