xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/freedreno/freedreno_surface.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2012 Rob Clark <[email protected]>
3  * SPDX-License-Identifier: MIT
4  *
5  * Authors:
6  *    Rob Clark <[email protected]>
7  */
8 
9 #ifndef FREEDRENO_SURFACE_H_
10 #define FREEDRENO_SURFACE_H_
11 
12 #include "pipe/p_state.h"
13 
14 struct fd_surface {
15    struct pipe_surface base;
16 };
17 
18 static inline struct fd_surface *
fd_surface(struct pipe_surface * psurf)19 fd_surface(struct pipe_surface *psurf)
20 {
21    return (struct fd_surface *)psurf;
22 }
23 
24 struct pipe_surface *fd_create_surface(struct pipe_context *pctx,
25                                        struct pipe_resource *ptex,
26                                        const struct pipe_surface *surf_tmpl);
27 void fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf);
28 
29 #endif /* FREEDRENO_SURFACE_H_ */
30