OSDN Git Service

st/dri: invalidate_resource depth/stencil before flush_resource
authorJonathan Marek <jonathan@marek.ca>
Mon, 21 Jan 2019 16:02:11 +0000 (11:02 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 20:22:32 +0000 (20:22 +0000)
commite685566612b8d983f0cebbabca75849e3f7ebdc8
tree4776a95702dc9335024f8056fb3f1bbb638392df
parent820dfcea431e4f96f25e6b340edd9cd1e449158b
st/dri: invalidate_resource depth/stencil before flush_resource

This allows freedreno to be aware of the depth invalidate when flushing
batches on flush_resource.

AFAIK, the only other driver which might care about this change is vc4,
where I think it should help by allowing the depth invalidate to work with
GALLIUM_HUD.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/state_trackers/dri/dri_drawable.c