r600g: move shader structures into r600_shader.h
authorMarek Olšák <maraeo@gmail.com>
Fri, 12 Oct 2012 16:30:51 +0000 (18:30 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 12 Oct 2012 17:00:30 +0000 (19:00 +0200)
src/gallium/drivers/r600/eg_asm.c
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_asm.h
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_shader.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c

index 00ac4a8c25ba3465d94bd0fce6c7d6ec807a2afd..310d42425741f8fb3214955f470a7c0d53abdf4a 100644 (file)
@@ -22,6 +22,7 @@
  */
 #include "r600_pipe.h"
 #include "r600_opcodes.h"
+#include "r600_shader.h"
 
 #include "util/u_memory.h"
 #include "eg_sq.h"
index 37f139274e891e6724d36978498a44c636978d30..330c0212a18d10952ec118b932264d37281e6dda 100644 (file)
@@ -21,6 +21,7 @@
  * USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #include "r600_formats.h"
+#include "r600_shader.h"
 #include "evergreend.h"
 
 #include "pipe/p_shader_tokens.h"
index 37e8bf002d4fc7354d1d6c9f35b2bde7c1a9e5e7..066fb67aba4f4f2696ca7136cc780e33458062c6 100644 (file)
@@ -23,6 +23,7 @@
 #include "r600_sq.h"
 #include "r600_opcodes.h"
 #include "r600_formats.h"
+#include "r600_shader.h"
 #include "r600d.h"
 
 #include <errno.h>
index d8f258fb10a5ae38f97747b5113a6457a6a1ff44..8a9f3189be060f3fcb9e64ef8c117599bbd6ae07 100644 (file)
@@ -23,9 +23,7 @@
 #ifndef R600_ASM_H
 #define R600_ASM_H
 
-#include "r600.h"
-
-struct r600_context;
+#include "r600_pipe.h"
 
 struct r600_bytecode_alu_src {
        unsigned                        sel;
index bf3d0bd778d67205ce625d63c7a8724eebc6d8d7..578cbbe57d92a242bd8b91189c485ae1aabf7aac 100644 (file)
@@ -31,7 +31,6 @@
 #include "r600.h"
 #include "r600_llvm.h"
 #include "r600_public.h"
-#include "r600_shader.h"
 #include "r600_resource.h"
 #include "evergreen_compute.h"
 
@@ -46,6 +45,8 @@
 #define R600_BIG_ENDIAN 0
 #endif
 
+struct r600_shader_key;
+
 /* This encapsulates a state or an operation which can emitted into the GPU
  * command stream. It's not limited to states only, it can be used for anything
  * that wants to write commands into the CS (e.g. cache flushes). */
@@ -261,27 +262,6 @@ struct r600_pipe_shader_selector {
        unsigned        nr_ps_max_color_exports;
 };
 
-struct r600_shader_key {
-       unsigned color_two_side:1;
-       unsigned alpha_to_one:1;
-       unsigned nr_cbufs:4;
-};
-
-struct r600_pipe_shader {
-       struct r600_pipe_shader_selector *selector;
-       struct r600_pipe_shader *next_variant;
-       struct r600_shader              shader;
-       struct r600_pipe_state          rstate;
-       struct r600_resource            *bo;
-       unsigned        sprite_coord_enable;
-       unsigned        flatshade;
-       unsigned        pa_cl_vs_out_cntl;
-       unsigned        nr_ps_color_outputs;
-       struct r600_shader_key  key;
-       unsigned                db_shader_control;
-       unsigned                ps_depth_export;
-};
-
 struct r600_pipe_sampler_state {
        uint32_t                        tex_sampler_words[3];
        uint32_t                        border_color[4];
index 0b45d4f6e019d1ba1f9d973a91ef5a1570b5c22a..053a9882f9c028f8f95752795104f0ad84d2b7bd 100644 (file)
@@ -24,6 +24,7 @@
 #include "r600_llvm.h"
 #include "r600_formats.h"
 #include "r600_opcodes.h"
+#include "r600_shader.h"
 #include "r600d.h"
 
 #include "pipe/p_shader_tokens.h"
index 2b8412aa80fc832ced17e95bb69028e4430642b0..f76d591528147658134bf976dcc0115961901d6a 100644 (file)
@@ -62,4 +62,25 @@ struct r600_shader {
        boolean                 vs_out_point_size;
 };
 
+struct r600_shader_key {
+       unsigned color_two_side:1;
+       unsigned alpha_to_one:1;
+       unsigned nr_cbufs:4;
+};
+
+struct r600_pipe_shader {
+       struct r600_pipe_shader_selector *selector;
+       struct r600_pipe_shader *next_variant;
+       struct r600_shader      shader;
+       struct r600_pipe_state  rstate;
+       struct r600_resource    *bo;
+       unsigned                sprite_coord_enable;
+       unsigned                flatshade;
+       unsigned                pa_cl_vs_out_cntl;
+       unsigned                nr_ps_color_outputs;
+       struct r600_shader_key  key;
+       unsigned                db_shader_control;
+       unsigned                ps_depth_export;
+};
+
 #endif
index 208973affd269aa9df544df4f88010c787fedca2..7ae45584a15a40c2207300854f843dbc8b568ab1 100644 (file)
@@ -21,6 +21,7 @@
  * USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #include "r600_formats.h"
+#include "r600_shader.h"
 #include "r600d.h"
 
 #include "pipe/p_shader_tokens.h"
index 8b8e34dc9aa27c95a9b08191710a5b5eb3710ad1..ef18f6bcea265c11c28682a0ed7a75d2078a283c 100644 (file)
@@ -25,6 +25,7 @@
  *          Jerome Glisse <jglisse@redhat.com>
  */
 #include "r600_formats.h"
+#include "r600_shader.h"
 #include "r600d.h"
 
 #include "util/u_draw_quad.h"