intel/fs: grab fail_msg from v32 instead of v16 when v32->run_cs fails
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 14 Aug 2019 00:02:13 +0000 (17:02 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 26 Aug 2019 21:54:16 +0000 (14:54 -0700)
commit848d5e444a881a1a3ac6824f07d95988b312530b
tree8be9afd57c3bc9665b975d7b3ae9c1f1b9ff71da
parentc30116a2faf6e2d1829c77b0beac58d960e248c1
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 <jason@jlekstrand.net>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/compiler/brw_fs.cpp