summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorRune Petersen <rune@megahurts.dk>2006-11-17 19:12:42 +0000
committerRune Petersen <rune@megahurts.dk>2006-11-17 19:12:42 +0000
commit6c9cc81601e87b87f11b89669175dc5bbae4c36b (patch)
tree3220a7b8fa3e30604604e9955597eb245f619d2e /src/mesa/drivers/dri/r300/r300_context.h
parent0f614df7974a7126324a7fa5d80ee5c588a76f03 (diff)
fragment.position support
World position is calculated in the vertex shader and passed to the fragment shader via an unused texcoord.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index 2c8120ef18..dd3ecbb235 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -549,6 +549,7 @@ struct r300_stencilbuffer_state {
/* Can be tested with colormat currently. */
#define VSF_MAX_FRAGMENT_TEMPS (14)
+#define STATE_R300_WINDOW_DIMENSION (STATE_INTERNAL_DRIVER+0)
struct r300_vertex_shader_fragment {
int length;
@@ -623,6 +624,7 @@ struct r300_vertex_program {
int pos_end;
int num_temporaries; /* Number of temp vars used by program */
+ int wpos_idx;
int inputs[VERT_ATTRIB_MAX];
int outputs[VERT_RESULT_MAX];
int native;