mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 14:30:10 +01:00
pan: Move pan_shader_compile() to pan_compiler.h
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38753>
This commit is contained in:
parent
10e571aebd
commit
f1debfccaf
2 changed files with 11 additions and 11 deletions
|
|
@ -167,6 +167,13 @@ struct pan_shader_varying {
|
|||
enum pipe_format format;
|
||||
};
|
||||
|
||||
static inline unsigned
|
||||
pan_get_fixed_varying_mask(unsigned varyings_used)
|
||||
{
|
||||
return (varyings_used & BITFIELD_MASK(VARYING_SLOT_VAR0)) &
|
||||
~VARYING_BIT_POS & ~VARYING_BIT_PSIZ;
|
||||
}
|
||||
|
||||
struct bifrost_shader_blend_info {
|
||||
nir_alu_type type;
|
||||
uint32_t return_offset;
|
||||
|
|
@ -360,6 +367,10 @@ struct pan_shader_info {
|
|||
};
|
||||
};
|
||||
|
||||
void pan_shader_compile(nir_shader *nir, struct pan_compile_inputs *inputs,
|
||||
struct util_dynarray *binary,
|
||||
struct pan_shader_info *info);
|
||||
|
||||
uint16_t pan_to_bytemask(unsigned bytes, unsigned mask);
|
||||
|
||||
/* NIR passes to do some backend-specific lowering */
|
||||
|
|
|
|||
|
|
@ -30,17 +30,6 @@
|
|||
#include "panfrost/lib/pan_props.h"
|
||||
#include "panfrost/compiler/pan_compiler.h"
|
||||
|
||||
static unsigned
|
||||
pan_get_fixed_varying_mask(unsigned varyings_used)
|
||||
{
|
||||
return (varyings_used & BITFIELD_MASK(VARYING_SLOT_VAR0)) &
|
||||
~VARYING_BIT_POS & ~VARYING_BIT_PSIZ;
|
||||
}
|
||||
|
||||
void pan_shader_compile(nir_shader *nir, struct pan_compile_inputs *inputs,
|
||||
struct util_dynarray *binary,
|
||||
struct pan_shader_info *info);
|
||||
|
||||
#ifdef PAN_ARCH
|
||||
|
||||
#if PAN_ARCH >= 9
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue