summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_program.h
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-11 14:59:19 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:17 +1000
commit19a1e9015e4ae429ab26e56848104fa209590338 (patch)
tree95eb9540302f5a0c887ddad62424e4000e2e55bd /src/gallium/drivers/nv50/nv50_program.h
parent585ae74d87f3d04a4b5b7c068b865292afd1a16b (diff)
nv50: rename nv50_state.h to nv50_program.h
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_program.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.h b/src/gallium/drivers/nv50/nv50_program.h
new file mode 100644
index 00000000000..dd5aed799aa
--- /dev/null
+++ b/src/gallium/drivers/nv50/nv50_program.h
@@ -0,0 +1,37 @@
+#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