gallivm: Propagate vulkan resources

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-04-16 21:22:52 +02:00 committed by Marge Bot
parent 9aa28ae09d
commit 1448600171
2 changed files with 14 additions and 0 deletions

View file

@ -66,6 +66,9 @@ struct gallivm_state
LLVMTypeRef coro_free_hook_type;
LLVMValueRef get_time_hook;
LLVMValueRef texture_descriptor;
LLVMValueRef sampler_descriptor;
};
unsigned

View file

@ -117,6 +117,10 @@ struct lp_sampler_params
LLVMValueRef aniso_filter_table;
const struct lp_derivatives *derivs;
LLVMValueRef *texel;
LLVMValueRef texture_resource;
LLVMValueRef sampler_resource;
LLVMValueRef exec_mask;
};
/* Parameters used to handle sampler_size instructions */
@ -133,6 +137,10 @@ struct lp_sampler_size_query_params
enum lp_sampler_lod_property lod_property;
LLVMValueRef explicit_lod;
LLVMValueRef *sizes_out;
LLVMValueRef resource;
LLVMValueRef exec_mask;
enum pipe_format format;
};
#define LP_IMG_LOAD 0
@ -159,6 +167,9 @@ struct lp_img_params
LLVMValueRef indata[4];
LLVMValueRef indata2[4];
LLVMValueRef *outdata;
LLVMValueRef resource;
enum pipe_format format;
};