diff options
author | Dave Airlie <airlied@redhat.com> | 2022-09-26 13:52:21 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2022-09-29 07:08:03 +1000 |
commit | 977476bb050ee904fda8fa5871dc04c52a465836 (patch) | |
tree | ed5e01f1d5157578340ed67228b14d7ed6a5e713 /src/gallium/drivers/llvmpipe/lp_state_fs.c | |
parent | 98efdc449d1d0c6794372308ba5d454ea4862b93 (diff) |
llvmpipe/fs: fix invocations access for opaque ptrs.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18837>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 217349a1a86..53d933cfb02 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -3243,8 +3243,9 @@ generate_fragment(struct llvmpipe_context *lp, */ if (shader->info.base.num_instructions > 1) { LLVMValueRef invocs, val; + LLVMTypeRef invocs_type = LLVMInt64TypeInContext(gallivm->context); invocs = lp_jit_thread_data_invocations(gallivm, variant->jit_thread_data_type, thread_data_ptr); - val = LLVMBuildLoad(builder, invocs, ""); + val = LLVMBuildLoad2(builder, invocs_type, invocs, ""); val = LLVMBuildAdd(builder, val, LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), 1, 0), |