Re: [Mesa-dev] [PATCH 3/6] mesa/st: wire up DiscardFramebuffer

2018-12-11 Thread Roland Scheidegger
Am 11.12.18 um 23:50 schrieb Rob Clark: > pipe_context::invalidate_resource() is so *almost* what we want, but > with FBOs the fb can be a single layer/level of a pipe_resource, which > makes ::invalidate_resource() not expressive enough. > > Signed-off-by: Rob Clark > --- > src/gallium/include/

[Mesa-dev] [PATCH 3/6] mesa/st: wire up DiscardFramebuffer

2018-12-11 Thread Rob Clark
pipe_context::invalidate_resource() is so *almost* what we want, but with FBOs the fb can be a single layer/level of a pipe_resource, which makes ::invalidate_resource() not expressive enough. Signed-off-by: Rob Clark --- src/gallium/include/pipe/p_context.h | 8 src/mesa/state_tracker