freedreno/ir3: cleanup driver-param stuff
authorRob Clark <robclark@freedesktop.org>
Sat, 25 Jul 2015 16:48:18 +0000 (12:48 -0400)
committerRob Clark <robclark@freedesktop.org>
Mon, 27 Jul 2015 17:51:06 +0000 (13:51 -0400)
commita240748de52f2e469e91b60d29ae872828a594d7
tree7bf41ab38a49865432109005444b959aaa294ea9
parentbe8a8ebe578267ab24e343c3c1347936a221468e
freedreno/ir3: cleanup driver-param stuff

Add 'enum ir3_driver_param' to track driver-param slots, and a
create_driver_param() helper to avoid having the knowledge about
where driver params are placed in const regs spread throughout
the code as we add additional driver-params.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h