-
- for (i = 0; i < sp->num_so_targets; i++) {
- void *buf = softpipe_resource(sp->so_targets[i]->target.buffer)->data;
- sp->so_targets[i]->mapping = buf;
+ if (softpipe_screen(sp->pipe.screen)->use_llvm) {
+ softpipe_prepare_vertex_sampling(sp,
+ sp->num_sampler_views[PIPE_SHADER_VERTEX],
+ sp->sampler_views[PIPE_SHADER_VERTEX]);
+ softpipe_prepare_geometry_sampling(sp,
+ sp->num_sampler_views[PIPE_SHADER_GEOMETRY],
+ sp->sampler_views[PIPE_SHADER_GEOMETRY]);