/* Gallium context */
struct pipe_context base;
+ /* Upload manager for small resident GPU-internal data structures, like
+ * sampler descriptors. We use an upload manager since the minimum BO
+ * size from the kernel is 4kb */
+ struct u_upload_mgr *state_uploader;
+
/* Bound job batch and map of panfrost_batch_key to job batches */
struct panfrost_batch *batch;
struct hash_table *batches;
/* Compiled, mapped descriptor, ready for the hardware */
bool compiled;
struct mali_shader_packed shader;
+ struct mali_midgard_properties_packed properties;
+ struct mali_preload_packed preload;
/* Non-descript information */
unsigned uniform_count;
/* For Bifrost - output type for each RT */
enum bifrost_shader_type blend_types[BIFROST_MAX_RENDER_TARGET_COUNT];
- unsigned attribute_count, varying_count;
+ unsigned attribute_count, varying_count, ubo_count;
enum mali_format varyings[PIPE_MAX_ATTRIBS];
gl_varying_slot varyings_loc[PIPE_MAX_ATTRIBS];
struct pipe_stream_output_info stream_output;
struct panfrost_shader_state *state,
uint64_t *outputs_written);
-unsigned
-panfrost_ubo_count(struct panfrost_context *ctx, enum pipe_shader_type stage);
-
void
panfrost_create_sampler_view_bo(struct panfrost_sampler_view *so,
struct pipe_context *pctx,