freedreno/a6xx: Drop struct stage array
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 7 Jun 2019 03:29:38 +0000 (20:29 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 7 Jun 2019 14:33:12 +0000 (07:33 -0700)
commitb9bbac62340d853b1b8aaaf418267e341fb9b45e
tree15044fd46a66d838573102372fc4c413f7183af5
parent9382a3c11d58aa7bb47cfd61ace585b67fa95314
freedreno/a6xx: Drop struct stage array

This now boils down to just picking between binning or vertex shader
and dummy_fs or real fs, which we can do in a couple of lines of code
instead.  The constlen logic isn't doing what it thinks it's doing,
both constlens at this point

  MAX2(s[VS].constlen, align(state->bs->constlen, 4));

are binning shader constlens.  We'll have to revisit the constlen
logic, but this commit doesn't change how it works.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/freedreno/a6xx/fd6_program.c