diff options
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state_derived.c')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_state_derived.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c index 1485d37a62e..2a03650620a 100644 --- a/src/mesa/pipe/i915simple/i915_state_derived.c +++ b/src/mesa/pipe/i915simple/i915_state_derived.c @@ -103,40 +103,6 @@ static void calculate_vertex_layout( struct i915_context *i915 ) } } -#if 0 - /* color0 */ - if (inputsRead & (1 << TGSI_ATTRIB_COLOR0)) { - front0 = draw_emit_vertex_attr(vinfo, FORMAT_4UB, colorInterp); - vinfo->hwfmt[0] |= S4_VFMT_COLOR; - } - - /* color 1 */ - if (inputsRead & (1 << TGSI_ATTRIB_COLOR1)) { - assert(0); /* untested */ - front1 = draw_emit_vertex_attr(vinfo, FORMAT_4UB, colorInterp); - vinfo->hwfmt[0] |= S4_VFMT_SPEC_FOG; - } - - /* XXX fog? */ - - /* texcoords */ - { - uint i; - for (i = TGSI_ATTRIB_TEX0; i <= TGSI_ATTRIB_TEX7; i++) { - uint hwtc; - if (inputsRead & (1 << i)) { - draw_emit_vertex_attr(vinfo, FORMAT_4F, INTERP_PERSPECTIVE); - hwtc = TEXCOORDFMT_4D; - needW = TRUE; - } - else { - hwtc = TEXCOORDFMT_NOT_PRESENT; - } - vinfo->hwfmt[1] |= hwtc << ((i - TGSI_ATTRIB_TEX0) * 4); - } - } -#endif - /* go back and fill in the vertex position info now that we have needW */ if (needW) { vinfo->hwfmt[0] |= S4_VFMT_XYZW; |