freedreno: fix invalidate logic
authorJonathan Marek <jonathan@marek.ca>
Mon, 21 Jan 2019 16:32:30 +0000 (11:32 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 20:22:32 +0000 (20:22 +0000)
commitbcefa0f1cb99229b6dc241ff50b2c88da1dad950
treecd813af252cdbef678e6653409503af5d9a5e7bd
parent786f9639d62efc7df8e83d75e4e00f96e29c2ce8
freedreno: fix invalidate logic

Set dirty bits on invalidate to trigger invalidate logic in fd_draw_vbo.

Also, resource_written for color needs to be after the invalidate logic.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_resource.c