Lines Matching refs:scene
56 /* Scene temporary storage is clamped to this size:
60 /* The maximum amount of texture storage referenced by a scene is
106 * within a scene.
112 * initiate a scene without relying on malloc succeeding.
142 /** the framebuffer to render the scene into */
145 /** list of resources referenced by the scene commands */
148 /** Total memory used by the scene (in bytes). This sums all the
150 * other random allocations within the scene.
154 /** Sum of sizes of all resources referenced by the scene. Sums
155 * all the textures read by the scene:
179 void lp_scene_destroy(struct lp_scene *scene);
181 boolean lp_scene_is_empty(struct lp_scene *scene );
182 boolean lp_scene_is_oom(struct lp_scene *scene );
185 struct data_block *lp_scene_new_data_block( struct lp_scene *scene );
187 struct cmd_block *lp_scene_new_cmd_block( struct lp_scene *scene,
190 boolean lp_scene_add_resource_reference(struct lp_scene *scene,
194 boolean lp_scene_is_resource_referenced(const struct lp_scene *scene,
203 lp_scene_alloc( struct lp_scene *scene, unsigned size)
205 struct data_block_list *list = &scene->data;
214 scene->scene_size, LP_SCENE_MAX_SIZE);
217 block = lp_scene_new_data_block( scene );
236 lp_scene_alloc_aligned( struct lp_scene *scene, unsigned size,
239 struct data_block_list *list = &scene->data;
248 scene->scene_size, LP_SCENE_MAX_SIZE);
251 block = lp_scene_new_data_block( scene );
268 lp_scene_putback_data( struct lp_scene *scene, unsigned size)
270 struct data_block_list *list = &scene->data;
278 lp_scene_get_bin(struct lp_scene *scene, unsigned x, unsigned y)
280 return &scene->tile[x][y];
286 lp_scene_bin_reset(struct lp_scene *scene, unsigned x, unsigned y);
292 lp_scene_bin_command( struct lp_scene *scene,
297 struct cmd_bin *bin = lp_scene_get_bin(scene, x, y);
300 assert(x < scene->tiles_x);
301 assert(y < scene->tiles_y);
305 tail = lp_scene_new_cmd_block( scene, bin );
324 lp_scene_bin_cmd_with_state( struct lp_scene *scene,
330 struct cmd_bin *bin = lp_scene_get_bin(scene, x, y);
334 if (!lp_scene_bin_command(scene, x, y,
340 if (!lp_scene_bin_command( scene, x, y, cmd, arg ))
350 lp_scene_bin_everywhere( struct lp_scene *scene,
355 for (i = 0; i < scene->tiles_x; i++) {
356 for (j = 0; j < scene->tiles_y; j++) {
357 if (!lp_scene_bin_command( scene, i, j, cmd, arg ))
367 lp_scene_get_num_bins( const struct lp_scene *scene )
369 return scene->tiles_x * scene->tiles_y;
374 lp_scene_bin_iter_begin( struct lp_scene *scene );
377 lp_scene_bin_iter_next( struct lp_scene *scene );
381 /* Begin/end binning of a scene
384 lp_scene_begin_binning( struct lp_scene *scene,
388 lp_scene_end_binning( struct lp_scene *scene );
391 /* Begin/end rasterization of a scene
394 lp_scene_begin_rasterization(struct lp_scene *scene);
397 lp_scene_end_rasterization(struct lp_scene *scene );