Lines Matching refs:i915

54    struct i915_context *i915 = i915_context(pipe);  in i915_draw_vbo()  local
55 struct draw_context *draw = i915->draw; in i915_draw_vbo()
62 i915->dirty &= ~I915_NEW_VS_CONSTANTS; in i915_draw_vbo()
64 if (i915->dirty) in i915_draw_vbo()
65 i915_update_derived(i915); in i915_draw_vbo()
71 mapped_indices = i915->index_buffer.user_buffer; in i915_draw_vbo()
73 mapped_indices = i915_buffer(i915->index_buffer.buffer)->data; in i915_draw_vbo()
75 (ubyte *) mapped_indices + i915->index_buffer.offset, in i915_draw_vbo()
76 i915->index_buffer.index_size); in i915_draw_vbo()
79 if (i915->constants[PIPE_SHADER_VERTEX]) in i915_draw_vbo()
81 i915_buffer(i915->constants[PIPE_SHADER_VERTEX])->data, in i915_draw_vbo()
82 (i915->current.num_user_constants[PIPE_SHADER_VERTEX] * in i915_draw_vbo()
87 if (i915->num_vertex_sampler_views > 0) in i915_draw_vbo()
88 i915_prepare_vertex_sampling(i915); in i915_draw_vbo()
93 draw_vbo(i915->draw, info); in i915_draw_vbo()
98 if (i915->num_vertex_sampler_views > 0) in i915_draw_vbo()
99 i915_cleanup_vertex_sampling(i915); in i915_draw_vbo()
105 draw_flush(i915->draw); in i915_draw_vbo()
116 struct i915_context *i915 = i915_context(pipe); in i915_destroy() local
119 if (i915->blitter) in i915_destroy()
120 util_blitter_destroy(i915->blitter); in i915_destroy()
122 draw_destroy(i915->draw); in i915_destroy()
124 if(i915->batch) in i915_destroy()
125 i915->iws->batchbuffer_destroy(i915->batch); in i915_destroy()
129 pipe_surface_reference(&i915->framebuffer.cbufs[i], NULL); in i915_destroy()
131 pipe_surface_reference(&i915->framebuffer.zsbuf, NULL); in i915_destroy()
135 pipe_resource_reference(&i915->constants[i], NULL); in i915_destroy()
138 FREE(i915); in i915_destroy()
144 struct i915_context *i915; in i915_create_context() local
146 i915 = CALLOC_STRUCT(i915_context); in i915_create_context()
147 if (i915 == NULL) in i915_create_context()
150 i915->iws = i915_screen(screen)->iws; in i915_create_context()
151 i915->base.screen = screen; in i915_create_context()
152 i915->base.priv = priv; in i915_create_context()
154 i915->base.destroy = i915_destroy; in i915_create_context()
157 i915->base.clear = i915_clear_blitter; in i915_create_context()
159 i915->base.clear = i915_clear_render; in i915_create_context()
161 i915->base.draw_vbo = i915_draw_vbo; in i915_create_context()
164 util_slab_create(&i915->transfer_pool, sizeof(struct pipe_transfer), in i915_create_context()
166 util_slab_create(&i915->texture_transfer_pool, sizeof(struct i915_transfer), in i915_create_context()
171 i915->batch = i915->iws->batchbuffer_create(i915->iws); in i915_create_context()
176 i915->draw = draw_create(&i915->base); in i915_create_context()
177 assert(i915->draw); in i915_create_context()
179 draw_set_rasterize_stage(i915->draw, i915_draw_vbuf_stage(i915)); in i915_create_context()
181 draw_set_rasterize_stage(i915->draw, i915_draw_render_stage(i915)); in i915_create_context()
184 i915_init_surface_functions(i915); in i915_create_context()
185 i915_init_state_functions(i915); in i915_create_context()
186 i915_init_flush_functions(i915); in i915_create_context()
187 i915_init_resource_functions(i915); in i915_create_context()
188 i915_init_query_functions(i915); in i915_create_context()
190 draw_install_aaline_stage(i915->draw, &i915->base); in i915_create_context()
191 draw_install_aapoint_stage(i915->draw, &i915->base); in i915_create_context()
192 draw_enable_point_sprites(i915->draw, TRUE); in i915_create_context()
195 i915_init_fixup_state_functions(i915); in i915_create_context()
198 i915->blitter = util_blitter_create(&i915->base); in i915_create_context()
199 assert(i915->blitter); in i915_create_context()
201 i915->dirty = ~0; in i915_create_context()
202 i915->hardware_dirty = ~0; in i915_create_context()
203 i915->immediate_dirty = ~0; in i915_create_context()
204 i915->dynamic_dirty = ~0; in i915_create_context()
205 i915->static_dirty = ~0; in i915_create_context()
206 i915->flush_dirty = 0; in i915_create_context()
208 return &i915->base; in i915_create_context()