vc4: Don't recompile the CS when the FS changes.
authorEric Anholt <eric@anholt.net>
Wed, 3 Aug 2016 18:57:53 +0000 (11:57 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 4 Aug 2016 15:48:27 +0000 (08:48 -0700)
The compiled_fs_id is a proxy for the vc4->prog.fs->input_slots[], but
only the VS dereferences it.

Drops 754 shaders from shader-db.

src/gallium/drivers/vc4/vc4_program.c

index b85396db88469de94582b364e823be04261eace9..487491ad6674219bbda8bd01cf9035dde9cda3b9 100644 (file)
@@ -2476,6 +2476,8 @@ vc4_update_compiled_vs(struct vc4_context *vc4, uint8_t prim_mode)
         }
 
         key->is_coord = true;
+        /* Coord shaders don't care what the FS inputs are. */
+        key->compiled_fs_id = 0;
         struct vc4_compiled_shader *cs =
                 vc4_get_compiled_shader(vc4, QSTAGE_COORD, &key->base);
         if (cs != vc4->prog.cs) {