ac/nir: set workgroup size attribute to correct value.
authorDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 00:20:48 +0000 (01:20 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 00:37:44 +0000 (01:37 +0100)
commit72f0830ecd566207c13bcffadfda2fb47cbe36c9
treeb9000f93a24cf8c8cc224375690621ca628b8c71
parent68c812f6993504ae5b5fe5ea47b86132c98c8fa1
ac/nir: set workgroup size attribute to correct value.

This ports: 55445ff1891724c78e6573d2f8c721e14c0449fc from radeonsi

    radeonsi: tell LLVM not to remove s_barrier instructions

    LLVM 5.0 removes s_barrier instructions if the max-work-group-size
    attribute is not set. What a surprise.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c