xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/freedreno/a2xx/fd2_context.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2013 Rob Clark <[email protected]>
3  * SPDX-License-Identifier: MIT
4  *
5  * Authors:
6  *    Rob Clark <[email protected]>
7  */
8 
9 #ifndef FD2_CONTEXT_H_
10 #define FD2_CONTEXT_H_
11 
12 #include "freedreno_context.h"
13 
14 struct fd2_context {
15    struct fd_context base;
16 
17    /* vertex buf used for clear/gmem->mem vertices, and mem->gmem
18     * vertices and tex coords:
19     */
20    struct pipe_resource *solid_vertexbuf;
21 };
22 
23 static inline struct fd2_context *
fd2_context(struct fd_context * ctx)24 fd2_context(struct fd_context *ctx)
25 {
26    return (struct fd2_context *)ctx;
27 }
28 
29 struct pipe_context *fd2_context_create(struct pipe_screen *pscreen, void *priv,
30                                         unsigned flags);
31 
32 #endif /* FD2_CONTEXT_H_ */
33