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>
This commit is contained in:
Dave Airlie
2022-09-26 13:52:21 +10:00
parent 98efdc449d
commit 977476bb05
+2 -1
View File
@@ -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),