diff options
-rw-r--r-- | src/fb.c | 2 | ||||
-rw-r--r-- | src/fb.h | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -328,6 +328,7 @@ int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments res_fragment->frame_height = fragment->frame_height; res_fragment->stride = fragment->stride; res_fragment->pitch = fragment->pitch; + res_fragment->number = num; return 1; } @@ -362,6 +363,7 @@ int fb_fragment_tile_single(const fb_fragment_t *fragment, unsigned tile_size, u res_fragment->frame_height = fragment->frame_height; res_fragment->stride = fragment->stride + ((fragment->width - res_fragment->width) * 4); res_fragment->pitch = fragment->pitch; + res_fragment->number = num; return 1; } @@ -18,6 +18,7 @@ typedef struct fb_fragment_t { unsigned frame_height; /* height of the frame this fragment is part of */ unsigned stride; /* number of bytes from the end of one row to the start of the next */ unsigned pitch; /* number of bytes separating y from y + 1, including any padding */ + unsigned number; /* this fragment's number as produced by fragmenting */ } fb_fragment_t; /* This is a page handle object for page flip submission/life-cycle. |