ac/nir: Fix store_scratch with a non-full writemask
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 16 Aug 2019 10:46:27 +0000 (12:46 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Sun, 18 Aug 2019 13:15:45 +0000 (15:15 +0200)
commitc550d367a747472ee71ed4c99e210174730aa82b
treec142bc645b52f31c139272ef7bf4846231376f78
parent0e394cda0db60ce8b584aac37913b793847ad518
ac/nir: Fix store_scratch with a non-full writemask

By adding one more helper to ac_llvm_build, we can also easily keep
vector stores together.

Fixes the
tests/spec/glsl-1.30/execution/fs-large-local-array-vec4.shader_test
piglit test.

Fixes: 74470baebbd ("ac/nir: Lower large indirect variables to scratch")
Reviewed-by: Marek Olšák <marek.olsak@amd.com
src/amd/common/ac_llvm_build.c
src/amd/common/ac_llvm_build.h
src/amd/common/ac_nir_to_llvm.c