summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-04-18 02:42:35 +0200
committerDave Airlie <[email protected]>2009-04-19 22:14:39 +1000
commit27d4546f600cb444f07a4d510a328540ff37f761 (patch)
tree833e5dfc3c462834a11e87f377855826c38eaac3 /src/mesa/drivers/dri/r300/r300_context.h
parentcb4bef7ae0b5fe8de82c380bc98f19067394d355 (diff)
r300: r300/r500 fp shader merge WIP
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index c3d91187a7f..8d0f95e31ee 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -641,6 +641,13 @@ struct r300_swtcl_info {
int sw_tcl_inputs[VERT_ATTRIB_MAX];
};
+struct r300_vtable {
+ void (* SetupRSUnit)(GLcontext *ctx);
+ void (* SetupFragmentShaderTextures)(GLcontext *ctx, int *tmu_mappings);
+ void ( *TranslateFragmentShader)(GLcontext *ctx, struct gl_fragment_program *fp);
+ GLboolean (* SetupPixelShader)(GLcontext *ctx);
+};
+
/**
* \brief R300 context structure.
@@ -648,6 +655,8 @@ struct r300_swtcl_info {
struct r300_context {
struct radeon_context radeon; /* parent class, must be first */
+ struct r300_vtable vtbl;
+
struct r300_hw_state hw;
struct r300_vertex_shader_state vertex_shader;