* these operations together because there are natural optimizations which
* require them to be together. */
-mali_ptr
+static mali_ptr
panfrost_get_index_buffer_bounded(struct panfrost_batch *batch,
const struct pipe_draw_info *info,
const struct pipe_draw_start_count_bias *draw,
}
}
-void panfrost_sampler_desc_init(const struct pipe_sampler_state *cso,
- struct mali_midgard_sampler_packed *hw)
+static void
+panfrost_sampler_desc_init(const struct pipe_sampler_state *cso,
+ struct mali_midgard_sampler_packed *hw)
{
bool using_nearest = cso->min_img_filter == PIPE_TEX_MIPFILTER_NEAREST;
}
}
-void panfrost_sampler_desc_init_bifrost(const struct pipe_sampler_state *cso,
- struct mali_bifrost_sampler_packed *hw)
+static void
+panfrost_sampler_desc_init_bifrost(const struct pipe_sampler_state *cso,
+ struct mali_bifrost_sampler_packed *hw)
{
bool using_nearest = cso->min_img_filter == PIPE_TEX_MIPFILTER_NEAREST;
memcpy(fragmeta, &rsd, sizeof(rsd));
}
-mali_ptr
+static mali_ptr
panfrost_emit_compute_shader_meta(struct panfrost_batch *batch, enum pipe_shader_type stage)
{
struct panfrost_shader_state *ss = panfrost_get_shader_state(batch->ctx, stage);
return ss->state.gpu;
}
-mali_ptr
+static mali_ptr
panfrost_emit_frag_shader_meta(struct panfrost_batch *batch)
{
struct panfrost_context *ctx = batch->ctx;
return xfer.gpu;
}
-mali_ptr
+static mali_ptr
panfrost_emit_viewport(struct panfrost_batch *batch)
{
struct panfrost_context *ctx = batch->ctx;
unreachable("No constant buffer");
}
-mali_ptr
+static mali_ptr
panfrost_emit_const_buf(struct panfrost_batch *batch,
enum pipe_shader_type stage,
mali_ptr *push_constants)
return ubos.gpu;
}
-mali_ptr
+static mali_ptr
panfrost_emit_shared_memory(struct panfrost_batch *batch,
const struct pipe_grid_info *info)
{
}
}
-mali_ptr
+static mali_ptr
panfrost_emit_texture_descriptors(struct panfrost_batch *batch,
enum pipe_shader_type stage)
{
}
}
-mali_ptr
+static mali_ptr
panfrost_emit_sampler_descriptors(struct panfrost_batch *batch,
enum pipe_shader_type stage)
{
}
}
-mali_ptr
+static mali_ptr
panfrost_emit_image_attribs(struct panfrost_batch *batch,
mali_ptr *buffers,
enum pipe_shader_type type)
return attribs.gpu;
}
-mali_ptr
+static mali_ptr
panfrost_emit_vertex_data(struct panfrost_batch *batch,
mali_ptr *buffers)
{
}
}
-void
+static void
panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
unsigned vertex_count,
mali_ptr *vs_attribs,
*fs_attribs = linkage->consumer;
}
-void
+static void
panfrost_emit_vertex_tiler_jobs(struct panfrost_batch *batch,
const struct panfrost_ptr *vertex_job,
const struct panfrost_ptr *tiler_job)
#include "pan_job.h"
-void panfrost_sampler_desc_init(const struct pipe_sampler_state *cso, struct mali_midgard_sampler_packed *hw);
-void panfrost_sampler_desc_init_bifrost(const struct pipe_sampler_state *cso, struct mali_bifrost_sampler_packed *hw);
-
-mali_ptr
-panfrost_emit_compute_shader_meta(struct panfrost_batch *batch, enum pipe_shader_type stage);
-
-mali_ptr
-panfrost_emit_frag_shader_meta(struct panfrost_batch *batch);
-
-mali_ptr
-panfrost_emit_viewport(struct panfrost_batch *batch);
-
-mali_ptr
-panfrost_emit_const_buf(struct panfrost_batch *batch,
- enum pipe_shader_type stage,
- mali_ptr *push_constants);
-
-mali_ptr
-panfrost_emit_shared_memory(struct panfrost_batch *batch,
- const struct pipe_grid_info *info);
-
-mali_ptr
-panfrost_emit_texture_descriptors(struct panfrost_batch *batch,
- enum pipe_shader_type stage);
-
-mali_ptr
-panfrost_emit_sampler_descriptors(struct panfrost_batch *batch,
- enum pipe_shader_type stage);
-
-mali_ptr
-panfrost_emit_image_attribs(struct panfrost_batch *batch,
- mali_ptr *buffers,
- enum pipe_shader_type type);
-
-mali_ptr
-panfrost_emit_vertex_data(struct panfrost_batch *batch,
- mali_ptr *buffers);
-
-mali_ptr
-panfrost_get_index_buffer_bounded(struct panfrost_batch *batch,
- const struct pipe_draw_info *info,
- const struct pipe_draw_start_count_bias *draw,
- unsigned *min_index, unsigned *max_index);
-
-void
-panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
- unsigned vertex_count,
- mali_ptr *vs_attribs,
- mali_ptr *fs_attribs,
- mali_ptr *buffers,
- unsigned *buffer_count,
- mali_ptr *position,
- mali_ptr *psiz,
- bool point_coord_replace);
-
-void
-panfrost_emit_vertex_tiler_jobs(struct panfrost_batch *batch,
- const struct panfrost_ptr *vertex_job,
- const struct panfrost_ptr *tiler_job);
-
-mali_ptr
-panfrost_emit_fragment_job(struct panfrost_batch *batch,
- const struct pan_fb_info *fb);
-
-void
-panfrost_emit_tls(struct panfrost_batch *batch);
-
-void
-panfrost_emit_fbd(struct panfrost_batch *batch,
- const struct pan_fb_info *fb);
-
-void
-panfrost_emit_tile_map(struct panfrost_batch *batch,
- struct pan_fb_info *fb);
-
static inline enum mali_sample_pattern
panfrost_sample_pattern(unsigned samples)
{