llvmpipe: use per-sample position not sample id for interp
authorDave Airlie <airlied@redhat.com>
Thu, 7 May 2020 01:25:01 +0000 (11:25 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 19 May 2020 00:26:46 +0000 (10:26 +1000)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 9a6510a8b2c159e8aac55c8e654c4b6701847c93..74dca711634ebaa7c5dbb50584a29329b7678e2c 100644 (file)
@@ -653,7 +653,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
 
    system_values.sample_pos = sample_pos_array;
 
-   lp_build_interp_soa_update_inputs_dyn(interp, gallivm, loop_state.counter, mask_store, system_values.sample_id);
+   lp_build_interp_soa_update_inputs_dyn(interp, gallivm, loop_state.counter, mask_store, sample_loop_state.counter);
 
    struct lp_build_tgsi_params params;
    memset(&params, 0, sizeof(params));