diff options
author | Stephane Marchesin <[email protected]> | 2008-11-13 18:06:06 +0100 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2008-11-13 18:06:06 +0100 |
commit | 42330d929c3bdc953948294906c49ee693818b47 (patch) | |
tree | dab7a074bd8758ae43f0c17683d510b8d46b7366 /src/gallium/drivers/nv50/nv50_program.h | |
parent | 2acdb116ced6b425e12bb6910c307d10b2939840 (diff) | |
parent | 3086b1ecbe718d05bdf016e01cff9f5928c42e63 (diff) |
Merge branch 'gallium-0.2' of git+ssh://[email protected]/git/nouveau/mesa into gallium-0.2
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_program.h')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_program.h | 45 |
1 files changed, 45 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..78deed6a384 --- /dev/null +++ b/src/gallium/drivers/nv50/nv50_program.h @@ -0,0 +1,45 @@ +#ifndef __NV50_PROGRAM_H__ +#define __NV50_PROGRAM_H__ + +#include "pipe/p_state.h" +#include "tgsi/tgsi_scan.h" + +struct nv50_program_exec { + struct nv50_program_exec *next; + + unsigned inst[2]; + struct { + int index; + unsigned mask; + unsigned shift; + } param; +}; + +struct nv50_program { + struct pipe_shader_state pipe; + struct tgsi_shader_info info; + boolean translated; + + unsigned type; + struct nv50_program_exec *exec_head; + struct nv50_program_exec *exec_tail; + unsigned exec_size; + struct nouveau_resource *data; + unsigned data_start; + + struct pipe_buffer *buffer; + + float *immd; + unsigned immd_nr; + unsigned param_nr; + + struct { + unsigned high_temp; + unsigned high_result; + struct { + unsigned attr[2]; + } vp; + } cfg; +}; + +#endif |