Re: [Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-11-02 Thread Connor Abbott
On Thu, Nov 2, 2017 at 12:10 PM, Nicolai Hähnle wrote: > On 31.10.2017 16:36, Connor Abbott wrote: >> >> On Tue, Oct 31, 2017 at 2:08 AM, Dave Airlie wrote: +LLVMValueRef +ac_build_subgroup_inclusive_scan(struct ac_llvm_context *ctx, +

Re: [Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-11-02 Thread Nicolai Hähnle
On 31.10.2017 16:36, Connor Abbott wrote: On Tue, Oct 31, 2017 at 2:08 AM, Dave Airlie wrote: +LLVMValueRef +ac_build_subgroup_inclusive_scan(struct ac_llvm_context *ctx, +LLVMValueRef src, +ac_reduce_op reduce,

Re: [Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-10-31 Thread Connor Abbott
On Tue, Oct 31, 2017 at 2:08 AM, Dave Airlie wrote: >> +LLVMValueRef >> +ac_build_subgroup_inclusive_scan(struct ac_llvm_context *ctx, >> +LLVMValueRef src, >> +ac_reduce_op reduce, >> +

Re: [Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-10-31 Thread Dave Airlie
> +LLVMValueRef > +ac_build_subgroup_inclusive_scan(struct ac_llvm_context *ctx, > +LLVMValueRef src, > +ac_reduce_op reduce, > +LLVMValueRef identity) > +{ > + /* See

[Mesa-dev] [PATCH 12/15] ac: add support for SPV_AMD_shader_ballot

2017-08-07 Thread Connor Abbott
From: Connor Abbott Using the new WWM and DPP intrinsics introduced in LLVM 6.0. This adds everything needed to implement SPV_AMD_shader_ballot, including the Groups capability, to ac_llvm_build.c. That way, it can be shared by a potential GL_AMD_shader_ballot implementation