radeonsi: use SI_PROFILE_CLAMP_DIV_BY_ZERO for viewperf
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 7 Feb 2022 17:46:23 +0000 (18:46 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Feb 2022 11:13:25 +0000 (11:13 +0000)
Only one shader from the Creo subtests needs this.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14931>

src/gallium/drivers/radeonsi/si_shader_info.c
src/util/00-mesa-defaults.conf

index 28cec31..f34dcc4 100644 (file)
@@ -55,6 +55,11 @@ static struct si_shader_profile profiles[] =
       {0x29f0f4a0, 0x0672258d, 0x47ccdcfd, 0x31e67dcc, 0xdcb1fda8},
       SI_PROFILE_WAVE64,
    },
+   {
+      /* Viewperf/Creo */
+      {0x1f288a73, 0xba46cce5, 0xbf68e6c6, 0x58543651, 0xca3c8efd},
+      SI_PROFILE_CLAMP_DIV_BY_ZERO,
+   },
 };
 
 static unsigned get_inst_tessfactor_writemask(nir_intrinsic_instr *intrin)
index 7f3aed4..02db931 100644 (file)
@@ -856,7 +856,6 @@ TODO: document the other workarounds.
         <application name="SPECviewperf13" executable="viewperf">
             <option name="glthread_nop_check_framebuffer_status" value="true" />
             <option name="radeonsi_sync_compile" value="true" />
-            <option name="radeonsi_clamp_div_by_zero" value="true" />
             <option name="radeonsi_tc_max_cpu_storage_size" value="2500" />
         </application>
         <application name="Road Redemption" executable="RoadRedemption.x86_64">