OSDN Git Service

radeonsi: fix gl_ClipDistance and gl_ClipVertex for points
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 15 Dec 2016 11:19:07 +0000 (12:19 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 22 Dec 2016 15:59:58 +0000 (16:59 +0100)
commiteca57f85ee1f47b32daa641a19d8d386c58eb1de
treeb55096e48acedd0b4c40cb958fcce35df2f73b36
parent3778a10d37cd0676ae6af03a059d7e80eb059245
radeonsi: fix gl_ClipDistance and gl_ClipVertex for points

The clipper hardware doesn't consider points as primitives that can be
clipped. Simply setting the corresponding cull bits works, and should not
have an adverse effect on other primitive types according to the hardware
team.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_state.c