projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfff9ce
)
broadcom/vc5: Add support for GL_RASTERIZER_DISCARD
author
Eric Anholt
<eric@anholt.net>
Tue, 7 Nov 2017 18:08:59 +0000
(10:08 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 7 Nov 2017 20:57:49 +0000
(12:57 -0800)
Fixes piglit discard-drawarrays.
src/gallium/drivers/vc5/vc5_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_emit.c
b/src/gallium/drivers/vc5/vc5_emit.c
index a4a1af7ddf48237018af585f31bce329b7e92bd1..b84ddd6647972ec5ef29150ac6114e9861fc10e2 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_emit.c
+++ b/
src/gallium/drivers/vc5/vc5_emit.c
@@
-262,9
+262,11
@@
vc5_emit_state(struct pipe_context *pctx)
VC5_DIRTY_COMPILED_FS)) {
cl_emit(&job->bcl, CONFIGURATION_BITS, config) {
config.enable_forward_facing_primitive =
+ !vc5->rasterizer->base.rasterizer_discard &&
!(vc5->rasterizer->base.cull_face &
PIPE_FACE_FRONT);
config.enable_reverse_facing_primitive =
+ !vc5->rasterizer->base.rasterizer_discard &&
!(vc5->rasterizer->base.cull_face &
PIPE_FACE_BACK);
/* This seems backwards, but it's what gets the