[Mesa-dev] [PATCH 09/17] ac: add i32_0 convenience member to ac_llvm_context

Connor Abbott cwabbott0 at gmail.com
Sat Jun 10 00:49:41 UTC 2017


Sure.

On Fri, Jun 9, 2017 at 5:04 PM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> Merge this with patch 14?
>
> On Sat, Jun 10, 2017 at 1:47 AM, Connor Abbott
> <connora at valvesoftware.com> wrote:
>> From: Connor Abbott <cwabbott0 at gmail.com>
>>
>> To match si_shader_context.
>>
>> Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
>> ---
>>  src/amd/common/ac_llvm_build.c | 2 ++
>>  src/amd/common/ac_llvm_build.h | 2 ++
>>  2 files changed, 4 insertions(+)
>>
>> diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
>> index 237e929..c411880 100644
>> --- a/src/amd/common/ac_llvm_build.c
>> +++ b/src/amd/common/ac_llvm_build.c
>> @@ -62,6 +62,8 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context)
>>         ctx->v4f32 = LLVMVectorType(ctx->f32, 4);
>>         ctx->v16i8 = LLVMVectorType(ctx->i8, 16);
>>
>> +        ctx->i32_0 = LLVMConstInt(ctx->i32, 0, 0);
>> +
>>         ctx->range_md_kind = LLVMGetMDKindIDInContext(ctx->context,
>>                                                      "range", 5);
>>
>> diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
>> index ebb78fb..bde0aa8 100644
>> --- a/src/amd/common/ac_llvm_build.h
>> +++ b/src/amd/common/ac_llvm_build.h
>> @@ -46,6 +46,8 @@ struct ac_llvm_context {
>>         LLVMTypeRef v4f32;
>>         LLVMTypeRef v16i8;
>>
>> +        LLVMValueRef i32_0;
>> +
>>         unsigned range_md_kind;
>>         unsigned invariant_load_md_kind;
>>         unsigned uniform_md_kind;
>> --
>> 2.9.4
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list