summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_context.h
diff options
context:
space:
mode:
authorIcenowy Zheng <[email protected]>2019-04-11 15:24:59 +0800
committerQiang Yu <[email protected]>2019-04-11 13:45:51 +0000
commit318ccbe7b2616eae9e59c525868d5105be2db179 (patch)
treebfb9d0aa63a8c219c73f59256b2e72edfde274da /src/gallium/drivers/lima/lima_context.h
parent8d27bc351f6f043d628138891dfa7855d055c007 (diff)
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 <[email protected]> Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_context.h')
-rw-r--r--src/gallium/drivers/lima/lima_context.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/lima/lima_context.h b/src/gallium/drivers/lima/lima_context.h
index 6b2612d75a7..8461eb437b8 100644
--- a/src/gallium/drivers/lima/lima_context.h
+++ b/src/gallium/drivers/lima/lima_context.h
@@ -32,13 +32,11 @@
#include "pipe/p_state.h"
struct lima_context_framebuffer {
- struct pipe_surface *cbuf, *zsbuf;
- int width, height;
+ struct pipe_framebuffer_state base;
int tiled_w, tiled_h;
int shift_w, shift_h;
int block_w, block_h;
int shift_min;
- int samples;
};
struct lima_context_clear {