don't crash when fog enabled, still not rendered correctly though
authorBrian <brian.paul@tungstengraphics.com>
Mon, 1 Oct 2007 19:54:24 +0000 (13:54 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 1 Oct 2007 19:54:24 +0000 (13:54 -0600)
src/mesa/pipe/i915simple/i915_state_derived.c

index 4b5b6a4..7eb3f3a 100644 (file)
@@ -85,6 +85,10 @@ static void calculate_vertex_layout( struct i915_context *i915 )
             vinfo->hwfmt[1] |= hwtc << (unit * 4);
          }
          break;
+      case TGSI_SEMANTIC_FOG:
+         fprintf(stderr, "i915 fogcoord not implemented yet\n");
+         draw_emit_vertex_attr(vinfo, FORMAT_1F, INTERP_PERSPECTIVE);
+         break;
       default:
          assert(0);
       }