ac/nir: Expose ac_nir_unpack_value in ac_nir_helpers.h
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32966>
This commit is contained in:
@@ -175,7 +175,7 @@ ac_nir_store_arg(nir_builder *b, const struct ac_shader_args *ac_args, struct ac
|
||||
nir_store_vector_arg_amd(b, val, .base = arg.arg_index);
|
||||
}
|
||||
|
||||
static nir_def *
|
||||
nir_def *
|
||||
ac_nir_unpack_value(nir_builder *b, nir_def *value, unsigned rshift, unsigned bitwidth)
|
||||
{
|
||||
if (rshift == 0 && bitwidth == 32)
|
||||
|
@@ -86,6 +86,9 @@ typedef struct nir_xfb_info nir_xfb_info;
|
||||
/* Executed by ac_nir_cull when the current primitive is accepted. */
|
||||
typedef void (*ac_nir_cull_accepted)(nir_builder *b, void *state);
|
||||
|
||||
nir_def *
|
||||
ac_nir_unpack_value(nir_builder *b, nir_def *value, unsigned rshift, unsigned bitwidth);
|
||||
|
||||
void
|
||||
ac_nir_store_var_components(nir_builder *b, nir_variable *var, nir_def *value,
|
||||
unsigned component, unsigned writemask);
|
||||
|
Reference in New Issue
Block a user