Home
last modified time | relevance | path

Searched refs:i915 (Results 1 – 25 of 70) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/i915/
Di915_context.c54 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()
[all …]
Di915_state_emit.c53 validate_flush(struct i915_context *i915, unsigned *batch_space) in validate_flush() argument
55 *batch_space = i915->flush_dirty ? 1 : 0; in validate_flush()
59 emit_flush(struct i915_context *i915) in emit_flush() argument
67 if (i915->flush_dirty & I915_FLUSH_CACHE) in emit_flush()
69 else if (i915->flush_dirty & I915_PIPELINE_FLUSH) in emit_flush()
110 emit_invariant(struct i915_context *i915) in emit_invariant() argument
112 i915_winsys_batchbuffer_write(i915->batch, invariant_state, in emit_invariant()
117 validate_immediate(struct i915_context *i915, unsigned *batch_space) in validate_immediate() argument
123 i915->immediate_dirty; in validate_immediate()
125 if (i915->immediate_dirty & (1 << I915_IMMEDIATE_S0) && i915->vbo) in validate_immediate()
[all …]
Di915_state.c179 struct i915_context *i915 = i915_context(pipe); in i915_bind_blend_state() local
181 if (i915->blend == blend) in i915_bind_blend_state()
184 i915->blend = (struct i915_blend_state*)blend; in i915_bind_blend_state()
186 i915->dirty |= I915_NEW_BLEND; in i915_bind_blend_state()
198 struct i915_context *i915 = i915_context(pipe); in i915_set_blend_color() local
203 i915->blend_color = *blend_color; in i915_set_blend_color()
205 i915->dirty |= I915_NEW_BLEND; in i915_set_blend_color()
211 struct i915_context *i915 = i915_context(pipe); in i915_set_stencil_ref() local
213 i915->stencil_ref = *stencil_ref; in i915_set_stencil_ref()
215 i915->dirty |= I915_NEW_DEPTH_STENCIL; in i915_set_stencil_ref()
[all …]
Di915_state_immediate.c42 static INLINE void set_immediate(struct i915_context *i915, in set_immediate() argument
46 if (i915->current.immediate[offset] == state) in set_immediate()
49 i915->current.immediate[offset] = state; in set_immediate()
50 i915->immediate_dirty |= 1 << offset; in set_immediate()
51 i915->hardware_dirty |= I915_HW_IMMEDIATE; in set_immediate()
59 static void upload_S0S1(struct i915_context *i915) in upload_S0S1() argument
65 LIS0 = i915->vbo_offset; in upload_S0S1()
68 if (i915->dirty & I915_NEW_VBO) { in upload_S0S1()
69 i915->immediate_dirty |= 1 << I915_IMMEDIATE_S0; in upload_S0S1()
70 i915->hardware_dirty |= I915_HW_IMMEDIATE; in upload_S0S1()
[all …]
Di915_state_dynamic.c49 static INLINE void set_dynamic(struct i915_context *i915, in set_dynamic() argument
53 if (i915->current.dynamic[offset] == state) in set_dynamic()
56 i915->current.dynamic[offset] = state; in set_dynamic()
57 i915->dynamic_dirty |= 1 << offset; in set_dynamic()
58 i915->hardware_dirty |= I915_HW_DYNAMIC; in set_dynamic()
63 static INLINE void set_dynamic_array(struct i915_context *i915, in set_dynamic_array() argument
70 if (!memcmp(src, &i915->current.dynamic[offset], dwords * 4)) in set_dynamic_array()
74 i915->current.dynamic[offset + i] = src[i]; in set_dynamic_array()
75 i915->dynamic_dirty |= 1 << (offset + i); in set_dynamic_array()
78 i915->hardware_dirty |= I915_HW_DYNAMIC; in set_dynamic_array()
[all …]
Di915_state_static.c95 static void update_framebuffer(struct i915_context *i915) in update_framebuffer() argument
97 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_framebuffer()
98 struct pipe_surface *depth_surface = i915->framebuffer.zsbuf; in update_framebuffer()
107 i915->current.cbuf_bo = tex->buffer; in update_framebuffer()
108 i915->current.cbuf_flags = BUF_3D_ID_COLOR_BACK | in update_framebuffer()
117 i915->current.cbuf_bo = NULL; in update_framebuffer()
120 i915->static_dirty |= I915_DST_BUF_COLOR; in update_framebuffer()
132 i915->current.depth_bo = tex->buffer; in update_framebuffer()
133 i915->current.depth_flags = BUF_3D_ID_DEPTH | in update_framebuffer()
137 i915->current.depth_bo = NULL; in update_framebuffer()
[all …]
Di915_surface.c53 struct i915_context *i915 = i915_context(pipe); in i915_surface_copy_render() local
62 if (!util_blitter_is_copy_supported(i915->blitter, dst, src, in i915_surface_copy_render()
69 util_blitter_save_blend(i915->blitter, (void *)i915->blend); in i915_surface_copy_render()
70 util_blitter_save_depth_stencil_alpha(i915->blitter, (void *)i915->depth_stencil); in i915_surface_copy_render()
71 util_blitter_save_stencil_ref(i915->blitter, &i915->stencil_ref); in i915_surface_copy_render()
72 util_blitter_save_rasterizer(i915->blitter, (void *)i915->rasterizer); in i915_surface_copy_render()
73 util_blitter_save_fragment_shader(i915->blitter, i915->saved_fs); in i915_surface_copy_render()
74 util_blitter_save_vertex_shader(i915->blitter, i915->saved_vs); in i915_surface_copy_render()
75 util_blitter_save_viewport(i915->blitter, &i915->viewport); in i915_surface_copy_render()
76 util_blitter_save_vertex_elements(i915->blitter, i915->saved_velems); in i915_surface_copy_render()
[all …]
Di915_flush.c44 struct i915_context *i915 = i915_context(pipe); in i915_flush_pipe() local
49 if (!fence && i915->batch && (i915->batch->map == i915->batch->ptr)) { in i915_flush_pipe()
60 void i915_init_flush_functions( struct i915_context *i915 ) in i915_init_flush_functions() argument
62 i915->base.flush = i915_flush_pipe; in i915_init_flush_functions()
69 void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence) in i915_flush() argument
71 struct i915_winsys_batchbuffer *batch = i915->batch; in i915_flush()
74 i915->vbo_flushed = 1; in i915_flush()
75 i915->hardware_dirty = ~0; in i915_flush()
76 i915->immediate_dirty = ~0; in i915_flush()
77 i915->dynamic_dirty = ~0; in i915_flush()
[all …]
Di915_prim_vbuf.c63 struct i915_context *i915; member
118 struct i915_context *i915 = i915_render->i915; in i915_vbuf_update_vbo_state() local
120 if (i915->vbo != i915_render->vbo || in i915_vbuf_update_vbo_state()
121 i915->vbo_offset != i915_render->vbo_hw_offset) { in i915_vbuf_update_vbo_state()
122 i915->vbo = i915_render->vbo; in i915_vbuf_update_vbo_state()
123 i915->vbo_offset = i915_render->vbo_hw_offset; in i915_vbuf_update_vbo_state()
124 i915->dirty |= I915_NEW_VBO; in i915_vbuf_update_vbo_state()
139 struct i915_context *i915 = i915_render->i915; in i915_vbuf_render_get_vertex_info() local
141 if (i915->dirty) { in i915_vbuf_render_get_vertex_info()
143 i915_update_derived(i915); in i915_vbuf_render_get_vertex_info()
[all …]
Di915_state_sampler.c61 static void update_map(struct i915_context *i915,
82 static void update_sampler(struct i915_context *i915, in update_sampler() argument
123 if (i915->conformance_mode > 0) { in update_sampler()
144 static void update_samplers(struct i915_context *i915) in update_samplers() argument
148 i915->current.sampler_enable_nr = 0; in update_samplers()
149 i915->current.sampler_enable_flags = 0x0; in update_samplers()
151 for (unit = 0; unit < i915->num_fragment_sampler_views && unit < i915->num_samplers; in update_samplers()
155 if (i915->fragment_sampler_views[unit]) { in update_samplers()
156 struct i915_texture *texture = i915_texture(i915->fragment_sampler_views[unit]->texture); in update_samplers()
158 update_sampler(i915, in update_samplers()
[all …]
Di915_clear.c49 struct i915_context *i915 = i915_context(pipe); in i915_clear_emit() local
62 struct pipe_surface *cbuf = i915->framebuffer.cbufs[0]; in i915_clear_emit()
77 if (i915->current.target_fixup_format) in i915_clear_emit()
87 struct pipe_surface *zbuf = i915->framebuffer.zsbuf; in i915_clear_emit()
108 struct pipe_surface *zbuf = i915->framebuffer.zsbuf; in i915_clear_emit()
122 if (i915->hardware_dirty) in i915_clear_emit()
123 i915_emit_hardware_state(i915); in i915_clear_emit()
128 i915_emit_hardware_state(i915); in i915_clear_emit()
129 i915->vbo_flushed = 1; in i915_clear_emit()
173 if (i915->hardware_dirty) in i915_clear_emit()
[all …]
Di915_prim_emit.c48 struct i915_context *i915; member
69 emit_hw_vertex( struct i915_context *i915, in emit_hw_vertex() argument
72 const struct vertex_info *vinfo = &i915->current.vertex_info; in emit_hw_vertex()
76 assert(!i915->dirty); in emit_hw_vertex()
133 struct i915_context *i915 = setup_stage(stage)->i915; in emit_prim() local
137 if (i915->dirty) in emit_prim()
138 i915_update_derived( i915 ); in emit_prim()
140 if (i915->hardware_dirty) in emit_prim()
141 i915_emit_hardware_state( i915 ); in emit_prim()
144 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim()
[all …]
Di915_state_derived.c57 static void calculate_vertex_layout(struct i915_context *i915) in calculate_vertex_layout() argument
59 const struct i915_fragment_shader *fs = i915->fs; in calculate_vertex_layout()
60 const enum interp_mode colorInterp = i915->rasterizer->color_interp; in calculate_vertex_layout()
108 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_POSITION, 0); in calculate_vertex_layout()
125 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 0); in calculate_vertex_layout()
132 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 1); in calculate_vertex_layout()
139 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_FOG, 0); in calculate_vertex_layout()
149 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, fs->generic_mapping[i]); in calculate_vertex_layout()
166 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_FACE, 0); in calculate_vertex_layout()
174 if (memcmp(&i915->current.vertex_info, &vinfo, sizeof(vinfo))) { in calculate_vertex_layout()
[all …]
Di915_batch.h36 (i915_winsys_batchbuffer_check(i915->batch, dwords))
39 i915_winsys_batchbuffer_dword(i915->batch, dword)
42 i915_winsys_batchbuffer_float(i915->batch, f)
45 i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, false)
48 i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, true)
51 i915_flush(i915, fence)
56 void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence);
Di915_resource.c32 i915_init_resource_functions(struct i915_context *i915 ) in i915_init_resource_functions() argument
34 i915->base.get_transfer = u_get_transfer_vtbl; in i915_init_resource_functions()
35 i915->base.transfer_map = u_transfer_map_vtbl; in i915_init_resource_functions()
36 i915->base.transfer_flush_region = u_transfer_flush_region_vtbl; in i915_init_resource_functions()
37 i915->base.transfer_unmap = u_transfer_unmap_vtbl; in i915_init_resource_functions()
38 i915->base.transfer_destroy = u_transfer_destroy_vtbl; in i915_init_resource_functions()
39 i915->base.transfer_inline_write = u_transfer_inline_write_vtbl; in i915_init_resource_functions()
Di915_context.h356 void i915_set_flush_dirty(struct i915_context *i915, unsigned flush) in i915_set_flush_dirty() argument
358 i915->hardware_dirty |= I915_HW_FLUSH; in i915_set_flush_dirty()
359 i915->flush_dirty |= flush; in i915_set_flush_dirty()
366 struct draw_stage *i915_draw_render_stage( struct i915_context *i915 );
372 struct draw_stage *i915_draw_vbuf_stage( struct i915_context *i915 );
378 void i915_prepare_vertex_sampling(struct i915_context *i915);
379 void i915_cleanup_vertex_sampling(struct i915_context *i915);
386 void i915_emit_hardware_state(struct i915_context *i915 );
408 void i915_init_state_functions( struct i915_context *i915 );
409 void i915_init_fixup_state_functions( struct i915_context *i915 );
[all …]
Di915_blit.c36 i915_fill_blit(struct i915_context *i915, in i915_fill_blit() argument
52 if(!i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)) { in i915_fill_blit()
54 assert(i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)); in i915_fill_blit()
85 i915_set_flush_dirty(i915, I915_FLUSH_CACHE); in i915_fill_blit()
89 i915_copy_blit(struct i915_context *i915, in i915_copy_blit() argument
113 if(!i915_winsys_validate_buffers(i915->batch, buffers, 2)) { in i915_copy_blit()
115 assert(i915_winsys_validate_buffers(i915->batch, buffers, 2)); in i915_copy_blit()
159 i915_set_flush_dirty(i915, I915_FLUSH_CACHE); in i915_copy_blit()
Di915_query.c78 i915_init_query_functions(struct i915_context *i915) in i915_init_query_functions() argument
80 i915->base.create_query = i915_create_query; in i915_init_query_functions()
81 i915->base.destroy_query = i915_destroy_query; in i915_init_query_functions()
82 i915->base.begin_query = i915_begin_query; in i915_init_query_functions()
83 i915->base.end_query = i915_end_query; in i915_init_query_functions()
84 i915->base.get_query_result = i915_get_query_result; in i915_init_query_functions()
DSConscript5 i915 = env.ConvenienceLibrary(
6 target = 'i915',
10 env.Alias('i915', i915)
12 Export('i915')
Di915_state_fpc.c35 static void update_hw_constants(struct i915_context *i915) in update_hw_constants() argument
37 i915->hardware_dirty |= I915_HW_CONSTANTS; in update_hw_constants()
50 static void update_fs(struct i915_context *i915) in update_fs() argument
52 i915->hardware_dirty |= I915_HW_PROGRAM; in update_fs()
Di915_debug.h73 void i915_debug_init(struct i915_screen *i915);
75 void i915_dump_batchbuffer(struct i915_winsys_batchbuffer *i915);
77 void i915_dump_dirty(struct i915_context *i915, const char *func);
79 void i915_dump_hardware_dirty(struct i915_context *i915, const char *func);
/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_state.c54 struct i915_context *i915 = I915_CONTEXT(ctx); in i915_update_stencil() local
97 GLuint dw = i915->state.Ctx[reg]; \ in i915_update_stencil()
100 dirty |= dw != i915->state.Ctx[reg]; \ in i915_update_stencil()
101 i915->state.Ctx[reg] = dw; \ in i915_update_stencil()
157 I915_STATECHANGE(i915, I915_UPLOAD_CTX); in i915_update_stencil()
180 struct i915_context *i915 = I915_CONTEXT(ctx); in i915AlphaFunc() local
187 dw = i915->state.Ctx[I915_CTXREG_LIS6]; in i915AlphaFunc()
191 if (dw != i915->state.Ctx[I915_CTXREG_LIS6]) { in i915AlphaFunc()
192 i915->state.Ctx[I915_CTXREG_LIS6] = dw; in i915AlphaFunc()
193 I915_STATECHANGE(i915, I915_UPLOAD_CTX); in i915AlphaFunc()
[all …]
Di915_vtbl.c56 struct i915_context *i915 = i915_context(&intel->ctx); in i915_render_prevalidate() local
58 i915ValidateFragmentProgram(i915); in i915_render_prevalidate()
71 struct i915_context *i915 = i915_context(&intel->ctx); in i915_reduced_primitive_state() local
72 GLuint st1 = i915->state.Stipple[I915_STPREG_ST1]; in i915_reduced_primitive_state()
88 i915->intel.reduced_primitive = rprim; in i915_reduced_primitive_state()
90 if (st1 != i915->state.Stipple[I915_STPREG_ST1]) { in i915_reduced_primitive_state()
93 I915_STATECHANGE(i915, I915_UPLOAD_STIPPLE); in i915_reduced_primitive_state()
94 i915->state.Stipple[I915_STPREG_ST1] = st1; in i915_reduced_primitive_state()
105 struct i915_context *i915 = i915_context(&intel->ctx); in i915_check_vertex_size() local
106 int lis2 = i915->state.Ctx[I915_CTXREG_LIS2]; in i915_check_vertex_size()
[all …]
Di915_texstate.c138 struct i915_context *i915 = i915_context(ctx); in i915_update_tex_unit() local
144 GLuint *state = i915->state.Tex[unit], format, pitch; in i915_update_tex_unit()
153 if (i915->state.tex_buffer[unit] != NULL) { in i915_update_tex_unit()
154 drm_intel_bo_unreference(i915->state.tex_buffer[unit]); in i915_update_tex_unit()
155 i915->state.tex_buffer[unit] = NULL; in i915_update_tex_unit()
167 i915->state.tex_buffer[unit] = intelObj->mt->region->bo; in i915_update_tex_unit()
168 i915->state.tex_offset[unit] = intelObj->mt->offset; in i915_update_tex_unit()
381 I915_ACTIVESTATE(i915, I915_UPLOAD_TEX(unit), true); in i915_update_tex_unit()
385 I915_STATECHANGE(i915, I915_UPLOAD_TEX(unit)); in i915_update_tex_unit()
421 struct i915_context *i915 = i915_context(&intel->ctx); in i915UpdateTextureState() local
[all …]
Di915_context.h268 #define I915_STATECHANGE(i915, flag) \ argument
270 INTEL_FIREVERTICES( &(i915)->intel ); \
271 (i915)->state.emitted &= ~(flag); \
274 #define I915_ACTIVESTATE(i915, flag, mode) \ argument
276 INTEL_FIREVERTICES( &(i915)->intel ); \
278 (i915)->state.active |= (flag); \
280 (i915)->state.active &= ~(flag); \
287 extern void i915InitVtbl(struct i915_context *i915);
342 extern void i915InitState(struct i915_context *i915);
357 extern void i915ValidateFragmentProgram(struct i915_context *i915);

123