gallivm: Add lp_descriptor struct

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22828>
This commit is contained in:
Konstantin Seurer 2023-06-07 11:04:27 +02:00 committed by Marge Bot
parent 0ab04247dc
commit e11e8289dd

View file

@ -188,5 +188,20 @@ void
lp_build_jit_fill_sampler_dynamic_state(struct lp_sampler_dynamic_state *state);
void
lp_build_jit_fill_image_dynamic_state(struct lp_sampler_dynamic_state *state);
union lp_descriptor {
struct {
struct lp_jit_texture texture;
struct lp_jit_sampler sampler;
void *sample_functions;
uint32_t sampler_index;
};
struct {
struct lp_jit_image image;
void *image_functions;
};
struct lp_jit_buffer buffer;
};
#endif