etnaviv: Check that resource has a valid TS in etna_resource_needs_flush
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 14 Nov 2017 09:21:20 +0000 (10:21 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 15 Nov 2017 22:27:09 +0000 (23:27 +0100)
commitade528edd1c48475684b68831dae6afdc27da867
treecc5ccd1be51a72cd2faa2ebec399d594e5562779
parentb24cb40188997aa4920812d5d52e14e64dab64d6
etnaviv: Check that resource has a valid TS in etna_resource_needs_flush

Resources only need a resolve-to-itself if their TS is valid for any
level, not just if it happens to be allocated.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_resource.h