diff options
author | Dave Airlie <airlied@redhat.com> | 2022-09-27 15:34:56 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-10-03 22:42:07 +0000 |
commit | 28afc22179df05d7727a80efd8e51356bc3ad000 (patch) | |
tree | 263232357be254417e5be0560275746cc7208efe /src/gallium/drivers/llvmpipe/lp_state_fs.c | |
parent | 270668f7b1a310e861acbc5b30fdd1172bc0d3cb (diff) |
gallivm/llvmpipe: hand sample position type in for loading.
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18932>
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, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index b65a3a897eb..d1dbd9d787d 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -643,6 +643,7 @@ generate_fs_loop(struct gallivm_state *gallivm, struct lp_type type, LLVMTypeRef context_type, LLVMValueRef context_ptr, + LLVMTypeRef sample_pos_type, LLVMValueRef sample_pos_array, LLVMValueRef num_loop, struct lp_build_interp_soa_context *interp, @@ -1020,6 +1021,7 @@ generate_fs_loop(struct gallivm_state *gallivm, } system_values.sample_pos = sample_pos_array; + system_values.sample_pos_type = sample_pos_type; lp_build_interp_soa_update_inputs_dyn(interp, gallivm, loop_state.counter, mask_type, mask_store, sample_loop_state.counter); @@ -3415,6 +3417,7 @@ generate_fragment(struct llvmpipe_context *lp, fs_type, variant->jit_context_type, context_ptr, + LLVMTypeOf(sample_pos_array), glob_sample_pos, num_loop, &interp, |