summaryrefslogtreecommitdiff
path: root/lib/rendercopy.h
blob: 3e984a1415f50a6922f2c238d2164ae757ec283f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "intel_batchbuffer.h"


static inline void emit_vertex_2s(struct intel_bb *ibb,
				  int16_t x, int16_t y)
{
	intel_bb_out(ibb, (uint32_t) y << 16 | (uint32_t) x);
}

static inline void emit_vertex(struct intel_bb *ibb,
			       float f)
{
	union { float f; uint32_t ui; } u;
	u.f = f;
	intel_bb_out(ibb, u.ui);
}

static inline void emit_vertex_normalized(struct intel_bb *ibb,
					  float f, float total)
{
	union { float f; uint32_t ui; } u;
	u.f = f / total;
	intel_bb_out(ibb, u.ui);
}

void gen12_render_clearfunc(struct intel_bb *ibb,
			    struct intel_buf *dst, unsigned int dst_x, unsigned int dst_y,
			    unsigned int width, unsigned int height,
			    const float clear_color[4]);
void gen12p71_render_copyfunc(struct intel_bb *ibb,
			      struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			      uint32_t width, uint32_t height,
			      struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen12_render_copyfunc(struct intel_bb *ibb,
			   struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			   uint32_t width, uint32_t height,
			   struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen11_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen9_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen8_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen7_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen6_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen4_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen3_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);
void gen2_render_copyfunc(struct intel_bb *ibb,
			  struct intel_buf *src, uint32_t src_x, uint32_t src_y,
			  uint32_t width, uint32_t height,
			  struct intel_buf *dst, uint32_t dst_x, uint32_t dst_y);