llvmpipe: split out scene surface info into separate struct

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11015>
This commit is contained in:
Mike Blumenkrantz 2021-05-26 08:58:02 -04:00 committed by Marge Bot
parent 614fcdc8c7
commit a2d1b6d14f

View file

@ -119,6 +119,15 @@ struct resource_ref;
struct shader_ref;
struct lp_scene_surface {
uint8_t *map;
unsigned stride;
unsigned layer_stride;
unsigned format_bytes;
unsigned sample_stride;
unsigned nr_samples;
};
/**
* All bins and bin data are contained here.
* Per-bin data goes into the 'tile' bins.
@ -140,14 +149,7 @@ struct lp_scene {
/* Framebuffer mappings - valid only between begin_rasterization()
* and end_rasterization().
*/
struct {
uint8_t *map;
unsigned stride;
unsigned layer_stride;
unsigned format_bytes;
unsigned sample_stride;
unsigned nr_samples;
} zsbuf, cbufs[PIPE_MAX_COLOR_BUFS];
struct lp_scene_surface zsbuf, cbufs[PIPE_MAX_COLOR_BUFS];
/* The amount of layers in the fb (minimum of all attachments) */
unsigned fb_max_layer;