Lines Matching refs:ctx
87 #define to_nouveau_context(ctx) ((struct nouveau_context *)(ctx))
89 #define context_dev(ctx) \
90 (to_nouveau_context(ctx)->screen->device)
91 #define context_chipset(ctx) \
92 (context_dev(ctx)->chipset)
93 #define context_chan(ctx) \
94 (to_nouveau_context(ctx)->hw.chan)
95 #define context_client(ctx) \
96 (to_nouveau_context(ctx)->hw.client)
97 #define context_push(ctx) \
98 (to_nouveau_context(ctx)->hw.pushbuf)
99 #define context_eng3d(ctx) \
100 (to_nouveau_context(ctx)->hw.eng3d)
101 #define context_drv(ctx) \
102 (to_nouveau_context(ctx)->screen->driver)
103 #define context_dirty(ctx, s) \
104 BITSET_SET(to_nouveau_context(ctx)->dirty, NOUVEAU_STATE_##s)
105 #define context_dirty_i(ctx, s, i) \
106 BITSET_SET(to_nouveau_context(ctx)->dirty, NOUVEAU_STATE_##s##0 + i)
107 #define context_emit(ctx, s) \
108 context_drv(ctx)->emit[NOUVEAU_STATE_##s](ctx, NOUVEAU_STATE_##s)
118 nouveau_context_init(struct gl_context *ctx, gl_api api,
123 nouveau_context_deinit(struct gl_context *ctx);
139 nouveau_fallback(struct gl_context *ctx, enum nouveau_fallback mode);
142 nouveau_validate_framebuffer(struct gl_context *ctx);