llvmpipe: Update for TGSI_INTERPOLATE_COLOR.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Jan 2012 17:14:26 +0000 (17:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Jan 2012 17:35:14 +0000 (17:35 +0000)
Not thoroughly tested nor reviewed. But should at least prevent the
assertion failure.

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 53e35ef6b3e85a7e23713c0f35f23235d1ad58d3..c7bab82b0882bd126f285e8414aa05a9f8ea9a03 100644 (file)
@@ -1025,19 +1025,15 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
       case TGSI_INTERPOLATE_PERSPECTIVE:
         shader->inputs[i].interp = LP_INTERP_PERSPECTIVE;
         break;
+      case TGSI_INTERPOLATE_COLOR:
+        shader->inputs[i].interp = LP_INTERP_COLOR;
+        break;
       default:
         assert(0);
         break;
       }
 
       switch (shader->info.base.input_semantic_name[i]) {
-      case TGSI_SEMANTIC_COLOR:
-         /* Colors may be either linearly or constant interpolated in
-         * the fragment shader, but that information isn't available
-         * here.  Mark color inputs and fix them up later.
-          */
-        shader->inputs[i].interp = LP_INTERP_COLOR;
-         break;
       case TGSI_SEMANTIC_FACE:
         shader->inputs[i].interp = LP_INTERP_FACING;
         break;