diff options
author | Eric Anholt <[email protected]> | 2016-08-03 11:57:53 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-08-04 08:48:27 -0700 |
commit | 62ea2461edbd4db2b82df02f7a77bcb707e65656 (patch) | |
tree | 4ed62140a1a3209c5092444d9f3d0105f24d7bef /src/gallium/drivers | |
parent | d577dbc201a530cedac2f39f0a34b2d8d62f5f48 (diff) |
vc4: Don't recompile the CS when the FS changes.
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.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index b85396db884..487491ad667 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -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) { |