diff options
author | Christoph Bumiller <[email protected]> | 2011-10-18 12:07:01 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:40 +0200 |
commit | 73ea0e7fd405af2866062492231c84580a306211 (patch) | |
tree | 0007e4feb12a744ff6e0836b5853a06096bdad1c /src/gallium/drivers/nvc0/nvc0_program.c | |
parent | b4ecef4b1b1e3c3d7bc3a9d7811af497ace5506d (diff) |
nvc0: add support for clip distance shader outputs
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_program.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_program.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c index c422c9b1087..f3185b488e8 100644 --- a/src/gallium/drivers/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nvc0/nvc0_program.c @@ -268,6 +268,11 @@ nvc0_vtgp_gen_header(struct nvc0_program *vp, struct nv50_ir_prog_info *info) } } + vp->vp.clip_enable = (1 << info->io.clipDistanceCount) - 1; + for (i = 0; i < 8; ++i) + if (info->io.cullDistanceMask & (1 << i)) + vp->vp.clip_mode |= 1 << (i * 4); + return 0; } |