etnaviv: don't flush resource to self without TS
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>
This commit is contained in:
parent
0f888ad4be
commit
f25390afa4
|
@ -102,7 +102,7 @@ etna_resource_older(struct etna_resource *a, struct etna_resource *b)
|
||||||
static inline bool
|
static inline bool
|
||||||
etna_resource_needs_flush(struct etna_resource *res)
|
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? */
|
/* is the resource only used on the sampler? */
|
||||||
|
|
Loading…
Reference in New Issue