freedreno/ir3: add support for ucp
authorRob Clark <robclark@freedesktop.org>
Thu, 10 Sep 2015 20:09:13 +0000 (16:09 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 17 Sep 2015 23:57:52 +0000 (19:57 -0400)
commit91ec210ea8e35af8a7b30fa599b67b1faa55f34c
tree25b4dcbc2579c9bf0924b8b5f7542d7d9b5f4496
parent509e0c4505813ebeaad1c95822156ed2df627487
freedreno/ir3: add support for ucp

Use nir_lower_clip pass for adding the VS/FS instructions to handle
user-clip-planes and CLIPDIST.  Wire up support for load_user_clip_plane
intrinsic to fetch ucp[plane] values as driver-params (passed as const's
to the shader).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
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