struct nv50_screen *ctx = nv50->screen
#include "nouveau/nouveau_push.h"
-#include "nv50_state.h"
#include "nv50_screen.h"
+#include "nv50_program.h"
#define NOUVEAU_ERR(fmt, args...) \
fprintf(stderr, "%s:%d - "fmt, __func__, __LINE__, ##args);
#include "tgsi/util/tgsi_util.h"
#include "nv50_context.h"
-#include "nv50_state.h"
#define NV50_SU_MAX_TEMP 64
--- /dev/null
+#ifndef __NV50_PROGRAM_H__
+#define __NV50_PROGRAM_H__
+
+#include "pipe/p_state.h"
+#include "tgsi/util/tgsi_scan.h"
+
+struct nv50_program_data {
+ int index;
+ int component;
+ float value;
+};
+
+struct nv50_program {
+ struct pipe_shader_state pipe;
+ struct tgsi_shader_info info;
+ boolean translated;
+
+ unsigned type;
+ unsigned *insns;
+ unsigned insns_nr;
+
+ struct pipe_buffer *buffer;
+
+ float *immd;
+ unsigned immd_nr;
+
+ struct nouveau_resource *data;
+
+ struct {
+ unsigned high_temp;
+ struct {
+ unsigned attr[2];
+ } vp;
+ } cfg;
+};
+
+#endif
#include "pipe/p_util.h"
#include "nv50_context.h"
-#include "nv50_state.h"
#include "nouveau/nouveau_stateobj.h"
+++ /dev/null
-#ifndef __NV50_STATE_H__
-#define __NV50_STATE_H__
-
-#include "pipe/p_state.h"
-#include "tgsi/util/tgsi_scan.h"
-
-struct nv50_program_data {
- int index;
- int component;
- float value;
-};
-
-struct nv50_program {
- struct pipe_shader_state pipe;
- struct tgsi_shader_info info;
- boolean translated;
-
- unsigned type;
- unsigned *insns;
- unsigned insns_nr;
-
- struct pipe_buffer *buffer;
-
- float *immd;
- unsigned immd_nr;
-
- struct nouveau_resource *data;
-
- struct {
- unsigned high_temp;
- struct {
- unsigned attr[2];
- } vp;
- } cfg;
-};
-
-#endif
#include "pipe/p_util.h"
#include "nv50_context.h"
-#include "nv50_state.h"
static INLINE unsigned
nv50_prim(unsigned mode)