mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 00:50:07 +01:00
move pipe_buffer_handle definition to top of file, use it in pipe_region
This commit is contained in:
parent
0b13336540
commit
bec2230514
1 changed files with 4 additions and 5 deletions
|
|
@ -55,6 +55,9 @@
|
|||
/* fwd decl */
|
||||
struct pipe_surface;
|
||||
|
||||
/* opaque type */
|
||||
struct pipe_buffer_handle;
|
||||
|
||||
|
||||
/***
|
||||
*** State objects
|
||||
|
|
@ -238,7 +241,7 @@ struct pipe_sampler_state
|
|||
|
||||
struct pipe_region
|
||||
{
|
||||
void *buffer; /**< driver private buffer handle */
|
||||
struct pipe_buffer_handle *buffer; /**< driver private buffer handle */
|
||||
|
||||
GLuint refcount; /**< Reference count for region */
|
||||
GLuint cpp; /**< bytes per pixel */
|
||||
|
|
@ -326,8 +329,4 @@ struct pipe_mipmap_tree
|
|||
};
|
||||
|
||||
|
||||
|
||||
struct pipe_buffer_handle;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue