i965: Split brw_blorp.c/h into multiple files
[mesa.git] / src / mesa / drivers / dri / i965 / brw_blorp.h
1 /*
2 * Copyright © 2012 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 (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
22 */
23
24 #pragma once
25
26 #include "blorp.h"
27 #include "intel_mipmap_tree.h"
28 #include "program/prog_instruction.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 void
35 brw_blorp_blit_miptrees(struct brw_context *brw,
36 struct intel_mipmap_tree *src_mt,
37 unsigned src_level, unsigned src_layer,
38 mesa_format src_format, int src_swizzle,
39 struct intel_mipmap_tree *dst_mt,
40 unsigned dst_level, unsigned dst_layer,
41 mesa_format dst_format,
42 float src_x0, float src_y0,
43 float src_x1, float src_y1,
44 float dst_x0, float dst_y0,
45 float dst_x1, float dst_y1,
46 GLenum filter, bool mirror_x, bool mirror_y,
47 bool decode_srgb, bool encode_srgb);
48
49 bool
50 brw_blorp_clear_color(struct brw_context *brw, struct gl_framebuffer *fb,
51 GLbitfield mask, bool partial_clear, bool encode_srgb);
52
53 void
54 brw_blorp_resolve_color(struct brw_context *brw,
55 struct intel_mipmap_tree *mt);
56
57 void
58 intel_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt,
59 unsigned int level, unsigned int layer, enum gen6_hiz_op op);
60
61 #ifdef __cplusplus
62 } /* extern "C" */
63 #endif