projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f888ad
)
etnaviv: don't flush resource to self without TS
author
Lucas Stach
<dev@lynxeye.de>
Sun, 4 Jun 2017 04:24:20 +0000
(06:24 +0200)
committer
Lucas Stach
<l.stach@pengutronix.de>
Thu, 8 Jun 2017 16:29:36 +0000
(18:29 +0200)
A resolve to self is only necessary if the resource is fast cleared, so
there is never a need to do so if there is no TS allocated.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/etnaviv/etnaviv_resource.h
b/src/gallium/drivers/etnaviv/etnaviv_resource.h
index 913316f193c2bd41a57962e8ee7adb1f4ac9b118..3507e5ccecbc8a6d94322c8318228a5cf24770b1 100644
(file)
--- a/
src/gallium/drivers/etnaviv/etnaviv_resource.h
+++ b/
src/gallium/drivers/etnaviv/etnaviv_resource.h
@@
-102,7
+102,7
@@
etna_resource_older(struct etna_resource *a, struct etna_resource *b)
static inline bool
etna_resource_needs_flush(struct etna_resource *res)
{
- return
(int)(res->seqno - res->flush_seqno) > 0
;
+ return
res->ts_bo && ((int)(res->seqno - res->flush_seqno) > 0)
;
}
/* is the resource only used on the sampler? */