llvmpipe: Add lp_build_sampler_soa_dynamic_state
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sun, 16 Apr 2023 19:21:48 +0000 (21:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 30 Jun 2023 12:56:34 +0000 (12:56 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22828>

src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.h

index c296e8f..c1265f2 100644 (file)
@@ -226,3 +226,10 @@ lp_bld_llvm_image_soa_create(const struct lp_image_static_state *static_state,
    image->nr_images = nr_images;
    return &image->base;
 }
+
+struct lp_sampler_dynamic_state *
+lp_build_sampler_soa_dynamic_state(struct lp_build_sampler_soa *_sampler)
+{
+   struct lp_bld_llvm_sampler_soa *sampler = (struct lp_bld_llvm_sampler_soa *)_sampler;
+   return &sampler->dynamic_state.base;
+}
index 4868c17..9b6f103 100644 (file)
@@ -359,6 +359,12 @@ struct lp_sampler_dynamic_state
 };
 
 
+struct lp_build_sampler_soa;
+
+struct lp_sampler_dynamic_state *
+lp_build_sampler_soa_dynamic_state(struct lp_build_sampler_soa *sampler);
+
+
 /**
  * Keep all information for sampling code generation in a single place.
  */