diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-12-16 19:28:05 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-12-16 19:28:05 +1100 |
commit | f287f687feebb6222137a297283d2dfa4ac11252 (patch) | |
tree | 007beafc10d5fe6f8f0010ba05e915b25fd236fe /src/mesa/pipe/nv40/nv40_state.h | |
parent | 505e50de1019ca002408f0be6ded89ba714acfa7 (diff) |
nv40: fp support for TGSI_FILE_IMMEDIATE.
arbfslight works, nouveau's first GLSL prog :)
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_state.h')
-rw-r--r-- | src/mesa/pipe/nv40/nv40_state.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/pipe/nv40/nv40_state.h b/src/mesa/pipe/nv40/nv40_state.h index 8ab334d267..cfc8b5637f 100644 --- a/src/mesa/pipe/nv40/nv40_state.h +++ b/src/mesa/pipe/nv40/nv40_state.h @@ -84,6 +84,11 @@ struct nv40_vertex_program { uint32_t or; }; +struct nv40_fragment_program_data { + unsigned offset; + unsigned index; +}; + struct nv40_fragment_program { const struct pipe_shader_state *pipe; @@ -93,11 +98,8 @@ struct nv40_fragment_program { uint32_t *insn; int insn_len; - struct { - int pipe_id; - int hw_id; - } consts[256]; - int num_consts; + struct nv40_fragment_program_data *consts; + unsigned nr_consts; struct pipe_buffer_handle *buffer; |