summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_context.h
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-09-13 23:10:35 +0200
committerChristoph Bumiller <[email protected]>2011-09-14 16:19:52 +0200
commit3afabfb929cf24a783c10c99bf0d86245e70a94a (patch)
tree73d04e84b157fe0803be054570533034f9e8e00c /src/gallium/drivers/nvc0/nvc0_context.h
parent57594065c30feec9376be9b2132659f7d87362ee (diff)
nvc0: hook up to new shader code generator
Also includes loading of shared shader library code (used for f64 and integer division) and setting up the immediate array buffer which is appended to the code.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.h')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.h b/src/gallium/drivers/nvc0/nvc0_context.h
index 353a5418dd5..c11d1c32efe 100644
--- a/src/gallium/drivers/nvc0/nvc0_context.h
+++ b/src/gallium/drivers/nvc0/nvc0_context.h
@@ -79,6 +79,7 @@ struct nvc0_context {
uint8_t num_textures[5];
uint8_t num_samplers[5];
uint8_t tls_required; /* bitmask of shader types using l[] */
+ uint8_t c14_bound; /* whether immediate array constbuf is bound */
uint16_t scissor;
uint32_t uniform_buffer_bound[5];
} state;
@@ -161,7 +162,9 @@ extern struct draw_stage *nvc0_draw_render_stage(struct nvc0_context *);
/* nvc0_program.c */
boolean nvc0_program_translate(struct nvc0_program *);
+boolean nvc0_program_upload_code(struct nvc0_context *, struct nvc0_program *);
void nvc0_program_destroy(struct nvc0_context *, struct nvc0_program *);
+void nvc0_program_library_upload(struct nvc0_context *);
/* nvc0_query.c */
void nvc0_init_query_functions(struct nvc0_context *);