1afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace/*
2afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace * Copyright 2015 Intel Corporation
3afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *
4afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  Permission is hereby granted, free of charge, to any person obtaining a
5afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  copy of this software and associated documentation files (the "Software"),
6afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  to deal in the Software without restriction, including without limitation
7afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
8afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  and/or sell copies of the Software, and to permit persons to whom the
9afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  Software is furnished to do so, subject to the following conditions:
10afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *
11afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  The above copyright notice and this permission notice (including the next
12afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  paragraph) shall be included in all copies or substantial portions of the
13afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  Software.
14afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *
15afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace *  IN THE SOFTWARE.
22afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace */
23afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
243a98bffa5924d5e7d078268cfe5a42c9f58f0470Emil Velikov#ifndef ISL_GEN6_H
253a98bffa5924d5e7d078268cfe5a42c9f58f0470Emil Velikov#define ISL_GEN6_H
26afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
274fe6e7f2bd35ead2cf833052285474d3de9ebad8Emil Velikov#include "isl.h"
28afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
29afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace#ifdef __cplusplus
30afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versaceextern "C" {
31afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace#endif
32afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
33afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versacebool
345b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikovisl_gen6_choose_msaa_layout(const struct isl_device *dev,
355b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                            const struct isl_surf_init_info *info,
365b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                            enum isl_tiling tiling,
375b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                            enum isl_msaa_layout *msaa_layout);
38afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
39afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versacevoid
405b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikovisl_gen6_choose_image_alignment_el(const struct isl_device *dev,
415b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                                   const struct isl_surf_init_info *restrict info,
425b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                                   enum isl_tiling tiling,
435b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                                   enum isl_dim_layout dim_layout,
445b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                                   enum isl_msaa_layout msaa_layout,
455b1efb65ce0282071d98bc471c8dc05dcafe08faEmil Velikov                                   struct isl_extent3d *image_align_el);
46afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace
47afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace#ifdef __cplusplus
48afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace}
49afdadec77f57b42d0c7f1f44c5ab87b636d38010Chad Versace#endif
503a98bffa5924d5e7d078268cfe5a42c9f58f0470Emil Velikov
513a98bffa5924d5e7d078268cfe5a42c9f58f0470Emil Velikov#endif /* ISL_GEN6_H */
52