/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_context.c | 62 struct i915_context *i915 = i915_context(pipe); in i915_draw_vbo() local 63 struct draw_context *draw = i915->draw; in i915_draw_vbo() 73 i915->dirty &= ~I915_NEW_VS_CONSTANTS; in i915_draw_vbo() 75 if (i915->dirty) in i915_draw_vbo() 76 i915_update_derived(i915); in i915_draw_vbo() 81 for (i = 0; i < i915->nr_vertex_buffers; i++) { in i915_draw_vbo() 82 const void *buf = i915->vertex_buffers[i].is_user_buffer in i915_draw_vbo() 83 ? i915->vertex_buffers[i].buffer.user in i915_draw_vbo() 86 if (!i915->vertex_buffers[i].buffer.resource) in i915_draw_vbo() 88 buf = i915_buffer(i915->vertex_buffers[i].buffer.resource)->data; in i915_draw_vbo() [all …]
|
D | i915_state_emit.c | 51 validate_flush(struct i915_context *i915, unsigned *batch_space) in validate_flush() argument 53 *batch_space = i915->flush_dirty ? 1 : 0; in validate_flush() 57 emit_flush(struct i915_context *i915) in emit_flush() argument 65 if (i915->flush_dirty & I915_FLUSH_CACHE) in emit_flush() 67 else if (i915->flush_dirty & I915_PIPELINE_FLUSH) in emit_flush() 97 emit_invariant(struct i915_context *i915) in emit_invariant() argument 100 i915->batch, invariant_state, in emit_invariant() 105 validate_immediate(struct i915_context *i915, unsigned *batch_space) in validate_immediate() argument 111 i915->immediate_dirty; in validate_immediate() 113 if (i915->immediate_dirty & (1 << I915_IMMEDIATE_S0) && i915->vbo) in validate_immediate() [all …]
|
D | i915_state_dynamic.c | 49 set_dynamic(struct i915_context *i915, unsigned offset, const unsigned state) in set_dynamic() argument 51 if (i915->current.dynamic[offset] == state) in set_dynamic() 54 i915->current.dynamic[offset] = state; in set_dynamic() 55 i915->dynamic_dirty |= 1 << offset; in set_dynamic() 56 i915->hardware_dirty |= I915_HW_DYNAMIC; in set_dynamic() 60 set_dynamic_array(struct i915_context *i915, unsigned offset, in set_dynamic_array() argument 65 if (!memcmp(src, &i915->current.dynamic[offset], dwords * 4)) in set_dynamic_array() 69 i915->current.dynamic[offset + i] = src[i]; in set_dynamic_array() 70 i915->dynamic_dirty |= 1 << (offset + i); in set_dynamic_array() 73 i915->hardware_dirty |= I915_HW_DYNAMIC; in set_dynamic_array() [all …]
|
D | i915_state_immediate.c | 42 set_immediate(struct i915_context *i915, unsigned offset, const unsigned state) in set_immediate() argument 44 if (i915->current.immediate[offset] == state) in set_immediate() 47 i915->current.immediate[offset] = state; in set_immediate() 48 i915->immediate_dirty |= 1 << offset; in set_immediate() 49 i915->hardware_dirty |= I915_HW_IMMEDIATE; in set_immediate() 56 upload_S0S1(struct i915_context *i915) in upload_S0S1() argument 62 LIS0 = i915->vbo_offset; in upload_S0S1() 65 if (i915->dirty & I915_NEW_VBO) { in upload_S0S1() 66 i915->immediate_dirty |= 1 << I915_IMMEDIATE_S0; in upload_S0S1() 67 i915->hardware_dirty |= I915_HW_IMMEDIATE; in upload_S0S1() [all …]
|
D | i915_state.c | 232 struct i915_context *i915 = i915_context(pipe); in i915_bind_blend_state() local 234 if (i915->blend == blend) in i915_bind_blend_state() 237 i915->blend = (struct i915_blend_state *)blend; in i915_bind_blend_state() 239 i915->dirty |= I915_NEW_BLEND; in i915_bind_blend_state() 252 struct i915_context *i915 = i915_context(pipe); in i915_set_blend_color() local 257 i915->blend_color = *blend_color; in i915_set_blend_color() 259 i915->dirty |= I915_NEW_BLEND; in i915_set_blend_color() 266 struct i915_context *i915 = i915_context(pipe); in i915_set_stencil_ref() local 268 i915->stencil_ref = stencil_ref; in i915_set_stencil_ref() 270 i915->dirty |= I915_NEW_DEPTH_STENCIL; in i915_set_stencil_ref() [all …]
|
D | i915_state_static.c | 79 update_framebuffer(struct i915_context *i915) in update_framebuffer() argument 81 struct pipe_surface *cbuf_surface = i915->framebuffer.cbufs[0]; in update_framebuffer() 82 struct pipe_surface *depth_surface = i915->framebuffer.zsbuf; in update_framebuffer() 92 i915->current.cbuf_bo = tex->buffer; in update_framebuffer() 93 i915->current.cbuf_flags = surf->buf_info; in update_framebuffer() 100 i915->current.cbuf_bo = NULL; in update_framebuffer() 103 i915->static_dirty |= I915_DST_BUF_COLOR; in update_framebuffer() 116 i915->current.depth_bo = tex->buffer; in update_framebuffer() 117 i915->current.depth_flags = surf->buf_info; in update_framebuffer() 119 i915->current.depth_bo = NULL; in update_framebuffer() [all …]
|
D | i915_prim_vbuf.c | 59 struct i915_context *i915; member 107 struct i915_context *i915 = i915_render->i915; in i915_vbuf_update_vbo_state() local 109 if (i915->vbo != i915_render->vbo || in i915_vbuf_update_vbo_state() 110 i915->vbo_offset != i915_render->vbo_hw_offset) { in i915_vbuf_update_vbo_state() 111 i915->vbo = i915_render->vbo; in i915_vbuf_update_vbo_state() 112 i915->vbo_offset = i915_render->vbo_hw_offset; in i915_vbuf_update_vbo_state() 113 i915->dirty |= I915_NEW_VBO; in i915_vbuf_update_vbo_state() 128 struct i915_context *i915 = i915_render->i915; in i915_vbuf_render_get_vertex_info() local 130 if (i915->dirty) { in i915_vbuf_render_get_vertex_info() 132 i915_update_derived(i915); in i915_vbuf_render_get_vertex_info() [all …]
|
D | i915_surface.c | 51 i915_util_blitter_save_states(struct i915_context *i915) in i915_util_blitter_save_states() argument 53 util_blitter_save_blend(i915->blitter, (void *)i915->blend); in i915_util_blitter_save_states() 54 util_blitter_save_depth_stencil_alpha(i915->blitter, in i915_util_blitter_save_states() 55 (void *)i915->depth_stencil); in i915_util_blitter_save_states() 56 util_blitter_save_stencil_ref(i915->blitter, &i915->stencil_ref); in i915_util_blitter_save_states() 57 util_blitter_save_rasterizer(i915->blitter, (void *)i915->rasterizer); in i915_util_blitter_save_states() 58 util_blitter_save_fragment_shader(i915->blitter, i915->fs); in i915_util_blitter_save_states() 59 util_blitter_save_vertex_shader(i915->blitter, i915->vs); in i915_util_blitter_save_states() 60 util_blitter_save_viewport(i915->blitter, &i915->viewport); in i915_util_blitter_save_states() 61 util_blitter_save_scissor(i915->blitter, &i915->scissor); in i915_util_blitter_save_states() [all …]
|
D | i915_state_derived.c | 45 calculate_vertex_layout(struct i915_context *i915) in calculate_vertex_layout() argument 47 const struct i915_fragment_shader *fs = i915->fs; in calculate_vertex_layout() 85 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_POSITION, 0); in calculate_vertex_layout() 97 if (i915->rasterizer->templ.point_size_per_vertex) { in calculate_vertex_layout() 98 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_PSIZE, 0); in calculate_vertex_layout() 107 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 0); in calculate_vertex_layout() 114 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 1); in calculate_vertex_layout() 121 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_FOG, 0); in calculate_vertex_layout() 130 src = draw_find_shader_output(i915->draw, fs->texcoords[i].semantic, in calculate_vertex_layout() 152 if (memcmp(&i915->current.vertex_info, &vinfo, sizeof(vinfo))) { in calculate_vertex_layout() [all …]
|
D | i915_flush.c | 43 struct i915_context *i915 = i915_context(pipe); in i915_flush_pipe() local 46 if (!i915->batch) in i915_flush_pipe() 52 if (!fence && (i915->batch->map == i915->batch->ptr)) { in i915_flush_pipe() 65 i915_init_flush_functions(struct i915_context *i915) in i915_init_flush_functions() argument 67 i915->base.flush = i915_flush_pipe; in i915_init_flush_functions() 75 i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence, in i915_flush() argument 78 struct i915_winsys_batchbuffer *batch = i915->batch; in i915_flush() 81 i915->vbo_flushed = 1; in i915_flush() 82 i915->hardware_dirty = ~0; in i915_flush() 83 i915->immediate_dirty = ~0; in i915_flush() [all …]
|
D | i915_prim_emit.c | 45 struct i915_context *i915; member 64 emit_hw_vertex(struct i915_context *i915, const struct vertex_header *vertex) in emit_hw_vertex() argument 66 const struct vertex_info *vinfo = &i915->current.vertex_info; in emit_hw_vertex() 70 assert(!i915->dirty); in emit_hw_vertex() 121 struct i915_context *i915 = setup_stage(stage)->i915; in emit_prim() local 125 if (i915->dirty) in emit_prim() 126 i915_update_derived(i915); in emit_prim() 128 if (i915->hardware_dirty) in emit_prim() 129 i915_emit_hardware_state(i915); in emit_prim() 132 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim() [all …]
|
D | i915_clear.c | 47 struct i915_context *i915 = i915_context(pipe); in i915_clear_emit() local 60 struct pipe_surface *cbuf = i915->framebuffer.cbufs[0]; in i915_clear_emit() 75 if (i915->current.fixup_swizzle) in i915_clear_emit() 85 struct pipe_surface *zbuf = i915->framebuffer.zsbuf; in i915_clear_emit() 107 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 …]
|
D | i915_state_sampler.c | 73 update_sampler(struct i915_context *i915, uint32_t unit, in update_sampler() argument 147 if (i915->conformance_mode > 0) { in update_sampler() 282 update_map(struct i915_context *i915, uint32_t unit, in update_map() argument 343 update_samplers(struct i915_context *i915) in update_samplers() argument 347 i915->current.sampler_enable_nr = 0; in update_samplers() 348 i915->current.sampler_enable_flags = 0x0; in update_samplers() 351 unit < i915->num_fragment_sampler_views && unit < i915->num_samplers; in update_samplers() 355 if (i915->fragment_sampler_views[unit]) { in update_samplers() 357 i915_texture(i915->fragment_sampler_views[unit]->texture); in update_samplers() 359 update_sampler(i915, unit, in update_samplers() [all …]
|
D | i915_resource.c | 33 i915_init_resource_functions(struct i915_context *i915) in i915_init_resource_functions() argument 35 i915->base.buffer_map = i915_buffer_transfer_map; in i915_init_resource_functions() 36 i915->base.texture_map = i915_texture_transfer_map; in i915_init_resource_functions() 37 i915->base.transfer_flush_region = u_default_transfer_flush_region; in i915_init_resource_functions() 38 i915->base.buffer_unmap = i915_buffer_transfer_unmap; in i915_init_resource_functions() 39 i915->base.texture_unmap = i915_texture_transfer_unmap; in i915_init_resource_functions() 40 i915->base.buffer_subdata = i915_buffer_subdata; in i915_init_resource_functions() 41 i915->base.texture_subdata = i915_texture_subdata; in i915_init_resource_functions()
|
D | i915_batch.h | 34 #define BEGIN_BATCH(dwords) (i915_winsys_batchbuffer_check(i915->batch, dwords)) 36 #define OUT_BATCH(dword) i915_winsys_batchbuffer_dword(i915->batch, dword) 38 #define OUT_BATCH_F(f) i915_winsys_batchbuffer_float(i915->batch, f) 41 i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, false) 44 i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, true) 46 #define FLUSH_BATCH(fence, flags) i915_flush(i915, fence, flags) 51 extern void i915_flush(struct i915_context *i915,
|
D | i915_query.c | 84 i915_init_query_functions(struct i915_context *i915) in i915_init_query_functions() argument 86 i915->base.create_query = i915_create_query; in i915_init_query_functions() 87 i915->base.destroy_query = i915_destroy_query; in i915_init_query_functions() 88 i915->base.begin_query = i915_begin_query; in i915_init_query_functions() 89 i915->base.end_query = i915_end_query; in i915_init_query_functions() 90 i915->base.get_query_result = i915_get_query_result; in i915_init_query_functions() 91 i915->base.set_active_query_state = i915_set_active_query_state; in i915_init_query_functions()
|
D | i915_context.h | 364 i915_set_flush_dirty(struct i915_context *i915, unsigned flush) in i915_set_flush_dirty() argument 366 i915->hardware_dirty |= I915_HW_FLUSH; in i915_set_flush_dirty() 367 i915->flush_dirty |= flush; in i915_set_flush_dirty() 371 i915_stencil_ccw(struct i915_context *i915) in i915_stencil_ccw() argument 376 return i915->rasterizer->templ.front_ccw && in i915_stencil_ccw() 377 (i915->depth_stencil->bfo_cw[0] & BFO_STENCIL_TWO_SIDE); in i915_stencil_ccw() 382 struct draw_stage *i915_draw_render_stage(struct i915_context *i915); 387 struct draw_stage *i915_draw_vbuf_stage(struct i915_context *i915); 392 void i915_emit_hardware_state(struct i915_context *i915); 413 void i915_init_state_functions(struct i915_context *i915); [all …]
|
D | i915_blit.c | 34 i915_fill_blit(struct i915_context *i915, unsigned cpp, unsigned rgba_mask, in i915_fill_blit() argument 44 if (!i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)) { in i915_fill_blit() 46 assert(i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)); in i915_fill_blit() 75 i915_set_flush_dirty(i915, I915_FLUSH_CACHE); in i915_fill_blit() 79 i915_copy_blit(struct i915_context *i915, unsigned cpp, in i915_copy_blit() argument 96 if (!i915_winsys_validate_buffers(i915->batch, buffers, 2)) { in i915_copy_blit() 98 assert(i915_winsys_validate_buffers(i915->batch, buffers, 2)); in i915_copy_blit() 140 i915_set_flush_dirty(i915, I915_FLUSH_CACHE); in i915_copy_blit()
|
D | i915_state_fpc.c | 33 update_hw_constants(struct i915_context *i915) in update_hw_constants() argument 35 i915->hardware_dirty |= I915_HW_CONSTANTS; in update_hw_constants() 44 update_fs(struct i915_context *i915) in update_fs() argument 46 i915->hardware_dirty |= I915_HW_PROGRAM; in update_fs()
|
D | i915_debug.h | 70 void i915_debug_init(struct i915_screen *i915); 72 void i915_dump_batchbuffer(struct i915_winsys_batchbuffer *i915); 74 void i915_dump_dirty(struct i915_context *i915, const char *func); 76 void i915_dump_hardware_dirty(struct i915_context *i915, const char *func);
|
/third_party/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_state.c | 56 struct i915_context *i915 = I915_CONTEXT(ctx); in i915_update_stencil() local 99 GLuint dw = i915->state.Ctx[reg]; \ in i915_update_stencil() 102 dirty |= dw != i915->state.Ctx[reg]; \ in i915_update_stencil() 103 i915->state.Ctx[reg] = dw; \ in i915_update_stencil() 159 I915_STATECHANGE(i915, I915_UPLOAD_CTX); in i915_update_stencil() 182 struct i915_context *i915 = I915_CONTEXT(ctx); in i915AlphaFunc() local 189 dw = i915->state.Ctx[I915_CTXREG_LIS6]; in i915AlphaFunc() 193 if (dw != i915->state.Ctx[I915_CTXREG_LIS6]) { in i915AlphaFunc() 194 i915->state.Ctx[I915_CTXREG_LIS6] = dw; in i915AlphaFunc() 195 I915_STATECHANGE(i915, I915_UPLOAD_CTX); in i915AlphaFunc() [all …]
|
D | i915_vtbl.c | 54 struct i915_context *i915 = i915_context(&intel->ctx); in i915_render_prevalidate() local 56 i915ValidateFragmentProgram(i915); in i915_render_prevalidate() 69 struct i915_context *i915 = i915_context(&intel->ctx); in i915_reduced_primitive_state() local 70 GLuint st1 = i915->state.Stipple[I915_STPREG_ST1]; in i915_reduced_primitive_state() 86 i915->intel.reduced_primitive = rprim; in i915_reduced_primitive_state() 88 if (st1 != i915->state.Stipple[I915_STPREG_ST1]) { in i915_reduced_primitive_state() 91 I915_STATECHANGE(i915, I915_UPLOAD_STIPPLE); in i915_reduced_primitive_state() 92 i915->state.Stipple[I915_STPREG_ST1] = st1; in i915_reduced_primitive_state() 103 struct i915_context *i915 = i915_context(&intel->ctx); in i915_check_vertex_size() local 104 int lis2 = i915->state.Ctx[I915_CTXREG_LIS2]; in i915_check_vertex_size() [all …]
|
D | i915_texstate.c | 143 struct i915_context *i915 = i915_context(ctx); in i915_update_tex_unit() local 149 GLuint *state = i915->state.Tex[unit], format; in i915_update_tex_unit() 158 if (i915->state.tex_buffer[unit] != NULL) { in i915_update_tex_unit() 159 drm_intel_bo_unreference(i915->state.tex_buffer[unit]); in i915_update_tex_unit() 160 i915->state.tex_buffer[unit] = NULL; in i915_update_tex_unit() 172 i915->state.tex_buffer[unit] = intelObj->mt->region->bo; in i915_update_tex_unit() 173 i915->state.tex_offset[unit] = intelObj->mt->offset; in i915_update_tex_unit() 391 I915_ACTIVESTATE(i915, I915_UPLOAD_TEX(unit), true); in i915_update_tex_unit() 395 I915_STATECHANGE(i915, I915_UPLOAD_TEX(unit)); in i915_update_tex_unit() 436 struct i915_context *i915 = i915_context(&intel->ctx); in i915UpdateTextureState() local [all …]
|
D | i915_context.h | 263 #define I915_STATECHANGE(i915, flag) \ argument 265 INTEL_FIREVERTICES( &(i915)->intel ); \ 266 (i915)->state.emitted &= ~(flag); \ 269 #define I915_ACTIVESTATE(i915, flag, mode) \ argument 271 INTEL_FIREVERTICES( &(i915)->intel ); \ 273 (i915)->state.active |= (flag); \ 275 (i915)->state.active &= ~(flag); \ 282 extern void i915InitVtbl(struct i915_context *i915); 338 extern void i915InitState(struct i915_context *i915); 353 extern void i915ValidateFragmentProgram(struct i915_context *i915);
|
/third_party/mesa3d/src/intel/tools/ |
D | intel_noop_drm_shim.c | 51 static struct i915_device i915 = {}; variable 127 if (i915.devinfo.ver >= 8 && !i915.devinfo.is_cherryview) in i915_ioctl_gem_context_getparam() 145 *gp->value = i915.device_id; in i915_ioctl_get_param() 151 *gp->value = i915.devinfo.timestamp_frequency; in i915_ioctl_get_param() 154 if (i915.devinfo.ver < 6) in i915_ioctl_get_param() 156 else if (i915.devinfo.ver <= 7) in i915_ioctl_get_param() 204 for (uint32_t s = 0; s < i915.devinfo.num_slices; s++) in i915_ioctl_get_param() 205 *gp->value += i915.devinfo.num_subslices[s]; in i915_ioctl_get_param() 209 for (uint32_t s = 0; s < i915.devinfo.num_slices; s++) in i915_ioctl_get_param() 210 *gp->value += i915.devinfo.num_subslices[s] * i915.devinfo.num_eu_per_subslice; in i915_ioctl_get_param() [all …]
|