projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386e936
)
broadcom/vc5: Skip emitting depth offset while disabled.
author
Eric Anholt
<eric@anholt.net>
Wed, 1 Nov 2017 21:04:45 +0000
(14:04 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 7 Nov 2017 17:19:48 +0000
(09:19 -0800)
The enable flag is also in the rasterizer state, so it will be emitted
once it's needed.
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 0c2cde708803a2d41ec1e0e43cde737f00f4ec4a..06df16730c2df1392beb83a3942499b7bd1c4eaa 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_emit.c
+++ b/
src/gallium/drivers/vc5/vc5_emit.c
@@
-277,14
+277,17
@@
vc5_emit_state(struct pipe_context *pctx)
}
- if (vc5->dirty & VC5_DIRTY_RASTERIZER) {
+ if (vc5->dirty & VC5_DIRTY_RASTERIZER &&
+ vc5->rasterizer->base.offset_tri) {
cl_emit(&job->bcl, DEPTH_OFFSET, depth) {
depth.depth_offset_factor =
vc5->rasterizer->offset_factor;
depth.depth_offset_units =
vc5->rasterizer->offset_units;
}
+ }
+ if (vc5->dirty & VC5_DIRTY_RASTERIZER) {
cl_emit(&job->bcl, POINT_SIZE, point_size) {
point_size.point_size = vc5->rasterizer->point_size;
}