lima: make lima_context_framebuffer subtype of pipe_framebuffer_state
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 11 Apr 2019 07:24:59 +0000 (15:24 +0800)
committerQiang Yu <yuq825@gmail.com>
Thu, 11 Apr 2019 13:45:51 +0000 (13:45 +0000)
commit318ccbe7b2616eae9e59c525868d5105be2db179
treebfb9d0aa63a8c219c73f59256b2e72edfde274da
parent8d27bc351f6f043d628138891dfa7855d055c007
lima: make lima_context_framebuffer subtype of pipe_framebuffer_state

Currently the lima driver saves the framebuffer state in its
from-scratch struct lima_context_framebuffer. However, util_blitter
requires to save framebuffer with standard struct
pipe_framebuffer_state.

Make the lima_context_framebuffer a subtype of the standard
pipe_framebuffer_state, thus the standard part can be used for
util_blitter framebuffer state saving.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_state.c