diff options
author | Rune Petersen <rune@megahurts.dk> | 2006-11-17 19:12:42 +0000 |
---|---|---|
committer | Rune Petersen <rune@megahurts.dk> | 2006-11-17 19:12:42 +0000 |
commit | 6c9cc81601e87b87f11b89669175dc5bbae4c36b (patch) | |
tree | 3220a7b8fa3e30604604e9955597eb245f619d2e /src/mesa/drivers/dri/r300/r300_context.h | |
parent | 0f614df7974a7126324a7fa5d80ee5c588a76f03 (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.h | 2 |
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; |