aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_state_derived.c
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-26 05:01:24 -0700
committerStéphane Marchesin <[email protected]>2011-06-27 02:05:58 -0700
commitd2f05283d2226f3285dccfc373ee9e314a8c95c8 (patch)
tree5d75b41085adee6ca120debe5273e67b0d7e077b /src/gallium/drivers/i915/i915_state_derived.c
parent992680c8b46d72cbc61888b8439d815bff42986c (diff)
i915g: Fix gl_FragCoord.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_derived.c')
-rw-r--r--src/gallium/drivers/i915/i915_state_derived.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state_derived.c b/src/gallium/drivers/i915/i915_state_derived.c
index 392ba191140..72b7571d772 100644
--- a/src/gallium/drivers/i915/i915_state_derived.c
+++ b/src/gallium/drivers/i915/i915_state_derived.c
@@ -33,6 +33,7 @@
#include "i915_context.h"
#include "i915_state.h"
#include "i915_debug.h"
+#include "i915_fpc.h"
#include "i915_reg.h"
static uint find_mapping(const struct i915_fragment_shader* fs, int unit)
@@ -72,6 +73,10 @@ static void calculate_vertex_layout(struct i915_context *i915)
for (i = 0; i < fs->info.num_inputs; i++) {
switch (fs->info.input_semantic_name[i]) {
case TGSI_SEMANTIC_POSITION:
+ {
+ uint unit = I915_SEMANTIC_POS;
+ texCoords[find_mapping(fs, unit)] = TRUE;
+ }
break;
case TGSI_SEMANTIC_COLOR:
assert(fs->info.input_semantic_index[i] < 2);