mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 22:50:32 +01:00
st/wgl: make stw_lookup_context_locked() an inline function
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
bd36cbfa5a
commit
f9595e21bc
2 changed files with 9 additions and 15 deletions
|
|
@ -190,19 +190,6 @@ stw_cleanup(void)
|
|||
}
|
||||
|
||||
|
||||
struct stw_context *
|
||||
stw_lookup_context_locked( DHGLRC dhglrc )
|
||||
{
|
||||
if (dhglrc == 0)
|
||||
return NULL;
|
||||
|
||||
if (stw_dev == NULL)
|
||||
return NULL;
|
||||
|
||||
return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc);
|
||||
}
|
||||
|
||||
|
||||
void APIENTRY
|
||||
DrvSetCallbackProcs(
|
||||
INT nProcs,
|
||||
|
|
|
|||
|
|
@ -76,10 +76,17 @@ struct stw_device
|
|||
#endif
|
||||
};
|
||||
|
||||
struct stw_context *
|
||||
stw_lookup_context_locked( DHGLRC hglrc );
|
||||
|
||||
extern struct stw_device *stw_dev;
|
||||
|
||||
|
||||
static INLINE struct stw_context *
|
||||
stw_lookup_context_locked( DHGLRC dhglrc )
|
||||
{
|
||||
if (dhglrc == 0 || stw_dev == NULL)
|
||||
return NULL;
|
||||
return (struct stw_context *) handle_table_get(stw_dev->ctx_table, dhglrc);
|
||||
}
|
||||
|
||||
|
||||
#endif /* STW_DEVICE_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue