freedreno/ir3: split out per-stage emit_consts fxns
authorRob Clark <robdclark@gmail.com>
Sun, 16 Apr 2017 16:39:59 +0000 (12:39 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 18 Apr 2017 20:32:00 +0000 (16:32 -0400)
commitb662f71d9c0726ca09cf5990de141b2e85f819d9
treeed871586512b41142e82a7e04bf998e3e89e3b90
parentdf37902e346e0fc8e7db4cecb6f2dbd6aa370adb
freedreno/ir3: split out per-stage emit_consts fxns

This makes it easier to deal with adding additional stages which have
their own driver-params.  The duplicated code this introduces can be
refactored out after a later patch moves to per-shader-stage dirty
flags.

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