OSDN Git Service

Merge branch 'gallium-edgeflags'
[android-x86/external-mesa.git] / src / gallium / drivers / r300 / r300_vs.h
1 /*
2  * Copyright 2009 Corbin Simpson <MostAwesomeDude@gmail.com>
3  * Copyright 2009 Marek Olšák <maraeo@gmail.com>
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * on the rights to use, copy, modify, merge, publish, distribute, sub
9  * license, and/or sell copies of the Software, and to permit persons to whom
10  * the Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
23
24 #ifndef R300_VS_H
25 #define R300_VS_H
26
27 #include "pipe/p_state.h"
28 #include "tgsi/tgsi_scan.h"
29 #include "radeon_code.h"
30
31 #include "r300_shader_semantics.h"
32
33 struct r300_context;
34
35 struct r300_vertex_shader {
36     /* Parent class */
37     struct pipe_shader_state state;
38
39     struct tgsi_shader_info info;
40     struct r300_shader_semantics outputs;
41     uint hwfmt[4];
42
43     /* Stream locations for SWTCL or if TCL is bypassed. */
44     int stream_loc_notcl[16];
45
46     /* Has this shader been translated yet? */
47     boolean translated;
48
49     /* Machine code (if translated) */
50     struct r300_vertex_program_code code;
51 };
52
53 void r300_translate_vertex_shader(struct r300_context* r300,
54                                   struct r300_vertex_shader* vs);
55
56 #endif /* R300_VS_H */