radeon: replace INLINE with inline
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
bbedb85898
commit
f51f2af76d
|
@ -98,7 +98,7 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
|
||||||
|
|
||||||
/* Fire the buffered vertices no matter what.
|
/* Fire the buffered vertices no matter what.
|
||||||
*/
|
*/
|
||||||
static INLINE void radeon_firevertices(radeonContextPtr radeon)
|
static inline void radeon_firevertices(radeonContextPtr radeon)
|
||||||
{
|
{
|
||||||
if (radeon->cmdbuf.cs->cdw || radeon->dma.flush )
|
if (radeon->cmdbuf.cs->cdw || radeon->dma.flush )
|
||||||
radeon->glCtx.Driver.Flush(&radeon->glCtx); /* +r6/r7 */
|
radeon->glCtx.Driver.Flush(&radeon->glCtx); /* +r6/r7 */
|
||||||
|
|
|
@ -486,7 +486,7 @@ out:
|
||||||
return dwords;
|
return dwords;
|
||||||
}
|
}
|
||||||
|
|
||||||
static INLINE void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state_atom *atom)
|
static inline void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state_atom *atom)
|
||||||
{
|
{
|
||||||
BATCH_LOCALS(radeon);
|
BATCH_LOCALS(radeon);
|
||||||
int dwords;
|
int dwords;
|
||||||
|
@ -511,7 +511,7 @@ static INLINE void radeon_emit_atom(radeonContextPtr radeon, struct radeon_state
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static INLINE void radeonEmitAtoms(radeonContextPtr radeon, GLboolean emitAll)
|
static inline void radeonEmitAtoms(radeonContextPtr radeon, GLboolean emitAll)
|
||||||
{
|
{
|
||||||
struct radeon_state_atom *atom;
|
struct radeon_state_atom *atom;
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ struct _radeon_texture_image {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static INLINE radeon_texture_image *get_radeon_texture_image(struct gl_texture_image *image)
|
static inline radeon_texture_image *get_radeon_texture_image(struct gl_texture_image *image)
|
||||||
{
|
{
|
||||||
return (radeon_texture_image*)image;
|
return (radeon_texture_image*)image;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ struct radeon_tex_obj {
|
||||||
GLboolean border_fallback;
|
GLboolean border_fallback;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INLINE radeonTexObj* radeon_tex_obj(struct gl_texture_object *texObj)
|
static inline radeonTexObj* radeon_tex_obj(struct gl_texture_object *texObj)
|
||||||
{
|
{
|
||||||
return (radeonTexObj*)texObj;
|
return (radeonTexObj*)texObj;
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ struct radeon_prim {
|
||||||
GLuint prim;
|
GLuint prim;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INLINE GLuint radeonPackColor(GLuint cpp,
|
static inline GLuint radeonPackColor(GLuint cpp,
|
||||||
GLubyte r, GLubyte g,
|
GLubyte r, GLubyte g,
|
||||||
GLubyte b, GLubyte a)
|
GLubyte b, GLubyte a)
|
||||||
{
|
{
|
||||||
|
|
|
@ -110,7 +110,7 @@ do { \
|
||||||
memcpy( rmesa->hw.ATOM.lastcmd, rmesa->hw.ATOM.cmd, \
|
memcpy( rmesa->hw.ATOM.lastcmd, rmesa->hw.ATOM.cmd, \
|
||||||
rmesa->hw.ATOM.cmd_size * 4)
|
rmesa->hw.ATOM.cmd_size * 4)
|
||||||
|
|
||||||
static INLINE int RADEON_DB_STATECHANGE(r100ContextPtr rmesa,
|
static inline int RADEON_DB_STATECHANGE(r100ContextPtr rmesa,
|
||||||
struct radeon_state_atom *atom )
|
struct radeon_state_atom *atom )
|
||||||
{
|
{
|
||||||
if (memcmp(atom->cmd, atom->lastcmd, atom->cmd_size*4)) {
|
if (memcmp(atom->cmd, atom->lastcmd, atom->cmd_size*4)) {
|
||||||
|
|
|
@ -374,7 +374,7 @@ static const GLuint hw_prim[GL_POLYGON+1] = {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
static INLINE void
|
static inline void
|
||||||
radeonDmaPrimitive( r100ContextPtr rmesa, GLenum prim )
|
radeonDmaPrimitive( r100ContextPtr rmesa, GLenum prim )
|
||||||
{
|
{
|
||||||
RADEON_NEWPRIM( rmesa );
|
RADEON_NEWPRIM( rmesa );
|
||||||
|
|
Loading…
Reference in New Issue