diff options
author | Paulo Zanoni <[email protected]> | 2019-08-13 17:02:13 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-04 11:55:31 -0700 |
commit | 6e07e58ef64b7487f56e6950d13559083e70415a (patch) | |
tree | f33764dfbcf01c4c43d599a2ad8b8e429040672e /src | |
parent | 7160c70f0fc2c6efe5e3987538f8ff1c5a715f89 (diff) |
intel/fs: grab fail_msg from v32 instead of v16 when v32->run_cs fails
Looks like a copy/paste error. This patch prevents a segfault when
running the following on BDW:
INTEL_DEBUG=no8,no16,do32 ./deqp-vk -n \
dEQP-VK.subgroups.arithmetic.compute.subgroupmin_dvec4
For the curious, the message we're getting is:
CS compile failed: Failure to register allocate. Reduce number
of live scalar values to avoid this.
Fixes: 864737ce6cd5 ("i965/fs: Build 32-wide compute shader when needed.")
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Paulo Zanoni <[email protected]>
(cherry picked from commit 848d5e444a881a1a3ac6824f07d95988b312530b)
Diffstat (limited to 'src')
-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 ebac22d690c..307b47a0ced 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -8433,7 +8433,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, if (!v32->run_cs(min_dispatch_width)) { compiler->shader_perf_log(log_data, "SIMD32 shader failed to compile: %s", - v16->fail_msg); + v32->fail_msg); if (!v) { fail_msg = "Couldn't generate SIMD32 program and not " |