mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
gallium: move st_texture_image() cast wrapper to header file
This commit is contained in:
parent
102529cf1b
commit
9d9143d889
2 changed files with 6 additions and 7 deletions
|
|
@ -58,13 +58,6 @@
|
|||
#define DBG if (0) printf
|
||||
|
||||
|
||||
static INLINE struct st_texture_image *
|
||||
st_texture_image(struct gl_texture_image *img)
|
||||
{
|
||||
return (struct st_texture_image *) img;
|
||||
}
|
||||
|
||||
|
||||
static enum pipe_texture_target
|
||||
gl_target_to_pipe(GLenum target)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -72,6 +72,12 @@ struct st_texture_object
|
|||
};
|
||||
|
||||
|
||||
static INLINE struct st_texture_image *
|
||||
st_texture_image(struct gl_texture_image *img)
|
||||
{
|
||||
return (struct st_texture_image *) img;
|
||||
}
|
||||
|
||||
static INLINE struct st_texture_object *
|
||||
st_texture_object(struct gl_texture_object *obj)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue