diff options
author | Jordan Justen <[email protected]> | 2020-03-03 02:28:24 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2020-07-09 15:44:34 -0700 |
commit | 1a4a2f563b04e93cca68d0b7013e52d949b1613b (patch) | |
tree | 00273ab58f838d6975a9b1ee2395cdcc394bb3f2 /src/intel | |
parent | 9418c8ec8dddd73a7fb0a4a1180118d49a8e5ebe (diff) |
intel/compiler/cs: Allow simd32 in some more cases with no8 and/or no16
If no16 was specified, and the shader can't run in simd8 due to the
local_size, then we need to generate a simd32 program.
If both no8 and no16 are specified, then we need to generate a simd32
program.
Rework:
* Drop update of `if` that would have changed `do32` to try simd32
even if simd16 spilled registers. (Caio)
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5269>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index bab816227c0..e10c6705858 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -9054,7 +9054,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, * * TODO: Use performance_analysis and drop this boolean. */ - const bool needs_32 = min_dispatch_width > 16 || + const bool needs_32 = v == NULL || (INTEL_DEBUG & DEBUG_DO32) || generate_all; |