gallium: decrease the size of pipe_box - 24 -> 16 bytes

Also:

pipe_transfer: 48 -> 40 bytes.
pipe_blit_info = 176 -> 160 bytes.

v2: add a comment at pipe_box

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2017-04-02 02:00:49 +02:00
parent 9869a3b3ba
commit 3dfe61ed6e

View file

@ -478,12 +478,15 @@ struct pipe_image_view
*/ */
struct pipe_box struct pipe_box
{ {
/* Fields only used by textures use int16_t instead of int.
* x and width are used by buffers, so they need the full 32-bit range.
*/
int x; int x;
int y; int16_t y;
int z; int16_t z;
int width; int width;
int height; int16_t height;
int depth; int16_t depth;
}; };