diff options
author | Luca Barbieri <[email protected]> | 2010-02-21 13:40:49 +0100 |
---|---|---|
committer | Younes Manton <[email protected]> | 2010-03-15 00:03:01 -0400 |
commit | 6518a1c853e82a42b28027b1304babd4f02f98ef (patch) | |
tree | a91016d5bcf0734ecfefa5bdcfc92d139f7ba494 /src/gallium/drivers/nv30/nv30_context.c | |
parent | b8e56d4cddbd9c491b940e3ce5974c526802c752 (diff) |
nv30, nv40: add is_nv4x member to context and screen structs
This will make it faster to check for nv40.
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c index 628b50d8dc3..afed8bb952a 100644 --- a/src/gallium/drivers/nv30/nv30_context.c +++ b/src/gallium/drivers/nv30/nv30_context.c @@ -71,6 +71,8 @@ nv30_create(struct pipe_screen *pscreen, void *priv) screen->base.channel->user_private = nvfx; screen->base.channel->flush_notify = nv30_state_flush_notify; + nvfx->is_nv4x = screen->is_nv4x; + nv30_init_query_functions(nvfx); nv30_init_surface_functions(nvfx); nv30_init_state_functions(nvfx); |