freedreno/ir3: refactor out helpers for comparing shader keys
authorRob Clark <robdclark@gmail.com>
Tue, 18 Apr 2017 14:24:38 +0000 (10:24 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 18 Apr 2017 20:32:00 +0000 (16:32 -0400)
commit5845b2045557681701c1aebd78755c5b65465344
tree3b356dcad4519bca3dacd30bb74cc8408f519b5b
parent6fb7935dedc87ffd767a2999f402ce1a46d18cce
freedreno/ir3: refactor out helpers for comparing shader keys

Each of the ir3 users has *basically* the same logic for comparing the
previous and current shader key, to see which, if any, shader state
needs to be marked dirty due to shader variant change.

The difference between gen's was just that some lowering flags never get
set on certain generations.  But it doesn't really hurt to include the
extra checks (because both keys would have false).

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/a4xx/fd4_draw.c
src/gallium/drivers/freedreno/a5xx/fd5_draw.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h