diff options
author | Ilia Mirkin <[email protected]> | 2016-08-20 00:14:43 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-09-03 19:58:42 -0400 |
commit | 83d7230fd5ab69e7e111e3a02e604e65922fb171 (patch) | |
tree | f59cb99fa22dc8c808dfb6f20c6032498dc6b1b4 /src/gallium/drivers/freedreno/a3xx/fd3_program.h | |
parent | dac72234c74b8cf4da516b915ed03efd8e2f9922 (diff) |
a3xx: make use of software clipping when hw can't handle it
The hw clipper only handles up to 6 UCPs. If there are more than 6 UCPs,
or a clip vertex, or clip distances are in use, then we must use the
fallback discard-based clipping from the frag shader.
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_program.h')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_program.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.h b/src/gallium/drivers/freedreno/a3xx/fd3_program.h index b3fcc0c68c9..b95df4cc6b3 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_program.h +++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.h @@ -44,4 +44,7 @@ void fd3_program_emit(struct fd_ringbuffer *ring, struct fd3_emit *emit, void fd3_prog_init(struct pipe_context *pctx); +bool fd3_needs_manual_clipping(const struct fd3_shader_stateobj *, + const struct pipe_rasterizer_state *); + #endif /* FD3_PROGRAM_H_ */ |