1/*
2 * Copyright © 2019 Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 */
22
23/* GenX-specific function declarations.
24 *
25 * Don't include this directly, it will be included by iris_context.h.
26 *
27 * NOTE: This header can be included multiple times, from the same file.
28 */
29
30/* iris_state.c */
31void genX(init_state)(struct iris_context *ice);
32void genX(init_screen_state)(struct iris_screen *screen);
33void genX(emit_hashing_mode)(struct iris_context *ice,
34                             struct iris_batch *batch,
35                             unsigned width, unsigned height,
36                             unsigned scale);
37void genX(emit_depth_state_workarounds)(struct iris_context *ice,
38                                        struct iris_batch *batch,
39                                        const struct isl_surf *surf);
40void genX(update_pma_fix)(struct iris_context *ice,
41                          struct iris_batch *batch,
42                          bool enable);
43
44void genX(invalidate_aux_map_state)(struct iris_batch *batch);
45
46/* iris_blorp.c */
47void genX(init_blorp)(struct iris_context *ice);
48
49/* iris_query.c */
50void genX(init_query)(struct iris_context *ice);
51void genX(math_add32_gpr0)(struct iris_context *ice,
52                           struct iris_batch *batch,
53                           uint32_t x);
54void genX(math_div32_gpr0)(struct iris_context *ice,
55                           struct iris_batch *batch,
56                           uint32_t D);
57
58