Home
last modified time | relevance | path

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

1234567

/external/mesa3d/src/gallium/drivers/i915/
Di915_context.c56 struct i915_context *i915 = i915_context(pipe); in i915_draw_vbo() local
57 struct draw_context *draw = i915->draw; in i915_draw_vbo()
67 i915->dirty &= ~I915_NEW_VS_CONSTANTS; in i915_draw_vbo()
69 if (i915->dirty) in i915_draw_vbo()
70 i915_update_derived(i915); in i915_draw_vbo()
75 for (i = 0; i < i915->nr_vertex_buffers; i++) { in i915_draw_vbo()
76 const void *buf = i915->vertex_buffers[i].is_user_buffer ? in i915_draw_vbo()
77 i915->vertex_buffers[i].buffer.user : NULL; in i915_draw_vbo()
79 if (!i915->vertex_buffers[i].buffer.resource) in i915_draw_vbo()
81 buf = i915_buffer(i915->vertex_buffers[i].buffer.resource)->data; 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_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.c180 struct i915_context *i915 = i915_context(pipe); in i915_bind_blend_state() local
182 if (i915->blend == blend) in i915_bind_blend_state()
185 i915->blend = (struct i915_blend_state*)blend; in i915_bind_blend_state()
187 i915->dirty |= I915_NEW_BLEND; in i915_bind_blend_state()
199 struct i915_context *i915 = i915_context(pipe); in i915_set_blend_color() local
204 i915->blend_color = *blend_color; in i915_set_blend_color()
206 i915->dirty |= I915_NEW_BLEND; in i915_set_blend_color()
212 struct i915_context *i915 = i915_context(pipe); in i915_set_stencil_ref() local
214 i915->stencil_ref = *stencil_ref; in i915_set_stencil_ref()
216 i915->dirty |= I915_NEW_DEPTH_STENCIL; in i915_set_stencil_ref()
[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 i915_util_blitter_save_states(struct i915_context *i915) in i915_util_blitter_save_states() argument
55 util_blitter_save_blend(i915->blitter, (void *)i915->blend); in i915_util_blitter_save_states()
56 util_blitter_save_depth_stencil_alpha(i915->blitter, (void *)i915->depth_stencil); in i915_util_blitter_save_states()
57 util_blitter_save_stencil_ref(i915->blitter, &i915->stencil_ref); in i915_util_blitter_save_states()
58 util_blitter_save_rasterizer(i915->blitter, (void *)i915->rasterizer); in i915_util_blitter_save_states()
59 util_blitter_save_fragment_shader(i915->blitter, i915->fs); in i915_util_blitter_save_states()
60 util_blitter_save_vertex_shader(i915->blitter, i915->vs); in i915_util_blitter_save_states()
61 util_blitter_save_viewport(i915->blitter, &i915->viewport); in i915_util_blitter_save_states()
62 util_blitter_save_scissor(i915->blitter, &i915->scissor); in i915_util_blitter_save_states()
63 util_blitter_save_vertex_elements(i915->blitter, i915->velems); in i915_util_blitter_save_states()
[all …]
Di915_flush.c45 struct i915_context *i915 = i915_context(pipe); in i915_flush_pipe() local
48 if (!i915->batch) in i915_flush_pipe()
54 if (!fence && (i915->batch->map == i915->batch->ptr)) { in i915_flush_pipe()
66 void i915_init_flush_functions( struct i915_context *i915 ) in i915_init_flush_functions() argument
68 i915->base.flush = i915_flush_pipe; in i915_init_flush_functions()
75 void i915_flush(struct i915_context *i915, in i915_flush() argument
79 struct i915_winsys_batchbuffer *batch = i915->batch; in i915_flush()
82 i915->vbo_flushed = 1; in i915_flush()
83 i915->hardware_dirty = ~0; in i915_flush()
84 i915->immediate_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_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()
107 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_POSITION, 0); in calculate_vertex_layout()
124 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 0); in calculate_vertex_layout()
131 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_COLOR, 1); in calculate_vertex_layout()
138 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_POSITION, 0); in calculate_vertex_layout()
152 … src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, fs->generic_mapping[i]); in calculate_vertex_layout()
170 src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_FACE, 0); in calculate_vertex_layout()
178 if (memcmp(&i915->current.vertex_info, &vinfo, sizeof(vinfo))) { in calculate_vertex_layout()
[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
127 if (i915->conformance_mode > 0) { in update_sampler()
148 static void update_samplers(struct i915_context *i915) in update_samplers() argument
152 i915->current.sampler_enable_nr = 0; in update_samplers()
153 i915->current.sampler_enable_flags = 0x0; in update_samplers()
155 for (unit = 0; unit < i915->num_fragment_sampler_views && unit < i915->num_samplers; in update_samplers()
159 if (i915->fragment_sampler_views[unit]) { in update_samplers()
160 struct i915_texture *texture = i915_texture(i915->fragment_sampler_views[unit]->texture); in update_samplers()
162 update_sampler(i915, in update_samplers()
[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 …]
/external/igt-gpu-tools/tests/
DMakefile.sources103 gem_bad_reloc_SOURCES = i915/gem_bad_reloc.c
106 gem_basic_SOURCES = i915/gem_basic.c
109 gem_busy_SOURCES = i915/gem_busy.c
112 gem_caching_SOURCES = i915/gem_caching.c
115 gem_close_SOURCES = i915/gem_close.c
118 gem_close_race_SOURCES = i915/gem_close_race.c
121 gem_concurrent_blit_SOURCES = i915/gem_concurrent_blit.c
124 gem_cpu_reloc_SOURCES = i915/gem_cpu_reloc.c
127 gem_create_SOURCES = i915/gem_create.c
130 gem_cs_prefetch_SOURCES = i915/gem_cs_prefetch.c
[all …]
Dprime_vgem.c33 static void test_read(int vgem, int i915) in test_read() argument
46 handle = prime_fd_to_handle(i915, dmabuf); in test_read()
57 gem_read(i915, handle, 4096*i, &tmp, sizeof(tmp)); in test_read()
60 gem_close(i915, handle); in test_read()
63 static void test_fence_read(int i915, int vgem) in test_fence_read() argument
81 handle = prime_fd_to_handle(i915, dmabuf); in test_fence_read()
89 gem_read(i915, handle, 4096*i, &tmp, sizeof(tmp)); in test_fence_read()
96 gem_read(i915, handle, 4096*i, &tmp, sizeof(tmp)); in test_fence_read()
99 gem_close(i915, handle); in test_fence_read()
120 static void test_fence_mmap(int i915, int vgem) in test_fence_mmap() argument
[all …]
/external/igt-gpu-tools/tests/i915/
Dgem_ctx_shared.c61 static void create_shared_gtt(int i915, unsigned int flags) in create_shared_gtt() argument
66 .handle = gem_create(i915, 4096), in create_shared_gtt()
74 gem_write(i915, obj.handle, 0, &bbe, sizeof(bbe)); in create_shared_gtt()
75 gem_execbuf(i915, &execbuf); in create_shared_gtt()
76 gem_sync(i915, obj.handle); in create_shared_gtt()
78 child = flags & DETACHED ? gem_context_create(i915) : 0; in create_shared_gtt()
81 child = gem_context_clone(i915, in create_shared_gtt()
85 gem_execbuf(i915, &execbuf); in create_shared_gtt()
88 gem_context_destroy(i915, parent); in create_shared_gtt()
89 gem_execbuf(i915, &execbuf); in create_shared_gtt()
[all …]
Dgem_vm_create.c28 static int vm_create_ioctl(int i915, struct drm_i915_gem_vm_control *ctl) in vm_create_ioctl() argument
31 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_VM_CREATE, ctl)) { in vm_create_ioctl()
39 static int vm_destroy_ioctl(int i915, struct drm_i915_gem_vm_control *ctl) in vm_destroy_ioctl() argument
42 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_VM_DESTROY, ctl)) { in vm_destroy_ioctl()
50 static int ctx_create_ioctl(int i915, in ctx_create_ioctl() argument
54 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT, arg)) { in ctx_create_ioctl()
62 static bool has_vm(int i915) in has_vm() argument
67 err = vm_create_ioctl(i915, &ctl); in has_vm()
74 gem_vm_destroy(i915, ctl.vm_id); in has_vm()
83 static void invalid_create(int i915) in invalid_create() argument
[all …]
Dgem_ctx_clone.c29 static int ctx_create_ioctl(int i915, struct drm_i915_gem_context_create_ext *arg) in ctx_create_ioctl() argument
34 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT, arg)) { in ctx_create_ioctl()
43 static bool has_ctx_clone(int i915) in has_ctx_clone() argument
53 return ctx_create_ioctl(i915, &create) == -ENOENT; in has_ctx_clone()
56 static void invalid_clone(int i915) in invalid_clone() argument
66 igt_assert_eq(ctx_create_ioctl(i915, &create), 0); in invalid_clone()
67 gem_context_destroy(i915, create.ctx_id); in invalid_clone()
70 igt_assert_eq(ctx_create_ioctl(i915, &create), -EINVAL); in invalid_clone()
74 igt_assert_eq(ctx_create_ioctl(i915, &create), -EFAULT); in invalid_clone()
76 igt_assert_eq(ctx_create_ioctl(i915, &create), -E2BIG); in invalid_clone()
[all …]
Dgem_ctx_engines.c47 static bool has_context_engines(int i915) in has_context_engines() argument
53 return __gem_context_set_param(i915, &param) == 0; in has_context_engines()
56 static void invalid_engines(int i915) in invalid_engines() argument
60 .ctx_id = gem_context_create(i915), in invalid_engines()
68 igt_assert_eq(__gem_context_set_param(i915, &param), 0); in invalid_engines()
71 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
74 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
77 igt_assert_eq(__gem_context_set_param(i915, &param), -EINVAL); in invalid_engines()
80 igt_assert_eq(__gem_context_set_param(i915, &param), 0); in invalid_engines()
94 igt_assert_eq(__gem_context_set_param(i915, &param), -ENOENT); in invalid_engines()
[all …]
Dgem_exec_balancer.c55 static bool has_class_instance(int i915, uint16_t class, uint16_t instance) in has_class_instance() argument
69 list_engines(int i915, uint32_t class_mask, unsigned int *out) in list_engines() argument
86 if (!has_class_instance(i915, class, instance)) in list_engines()
112 static int __set_engines(int i915, uint32_t ctx, in __set_engines() argument
128 return __gem_context_set_param(i915, &p); in __set_engines()
131 static void set_engines(int i915, uint32_t ctx, in set_engines() argument
135 igt_assert_eq(__set_engines(i915, ctx, ci, count), 0); in set_engines()
138 static int __set_load_balancer(int i915, uint32_t ctx, in __set_load_balancer() argument
168 return __gem_context_set_param(i915, &p); in __set_load_balancer()
171 static void set_load_balancer(int i915, uint32_t ctx, in set_load_balancer() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_state.c56 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 …]
Di915_vtbl.c54 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 …]
/external/mesa3d/src/intel/tools/
Dintel_noop_drm_shim.c51 static struct i915_device i915 = {}; variable
111 if (i915.devinfo.gen >= 8 && !i915.devinfo.is_cherryview) in i915_ioctl_gem_context_getparam()
129 *gp->value = i915.device_id; in i915_ioctl_get_param()
135 *gp->value = i915.devinfo.timestamp_frequency; in i915_ioctl_get_param()
138 if (i915.devinfo.gen < 6) in i915_ioctl_get_param()
140 else if (i915.devinfo.gen <= 7) in i915_ioctl_get_param()
185 for (uint32_t s = 0; s < i915.devinfo.num_slices; s++) in i915_ioctl_get_param()
186 *gp->value += i915.devinfo.num_subslices[s]; in i915_ioctl_get_param()
190 for (uint32_t s = 0; s < i915.devinfo.num_slices; s++) in i915_ioctl_get_param()
191 *gp->value += i915.devinfo.num_subslices[s] * i915.devinfo.num_eu_per_subslice; in i915_ioctl_get_param()
[all …]
/external/igt-gpu-tools/lib/i915/
Dgem_vm.c47 bool gem_has_vm(int i915) in gem_has_vm() argument
51 __gem_vm_create(i915, &vm_id); in gem_has_vm()
53 gem_vm_destroy(i915, vm_id); in gem_has_vm()
65 void gem_require_vm(int i915) in gem_require_vm() argument
67 igt_require(gem_has_vm(i915)); in gem_require_vm()
70 int __gem_vm_create(int i915, uint32_t *vm_id) in __gem_vm_create() argument
75 if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_VM_CREATE, &ctl) == 0) { in __gem_vm_create()
95 uint32_t gem_vm_create(int i915) in gem_vm_create() argument
99 igt_assert_eq(__gem_vm_create(i915, &vm_id), 0); in gem_vm_create()
105 int __gem_vm_destroy(int i915, uint32_t vm_id) in __gem_vm_destroy() argument
[all …]
Dgem_submission.c180 static bool is_wedged(int i915) in is_wedged() argument
183 if (ioctl(i915, DRM_IOCTL_I915_GEM_THROTTLE)) in is_wedged()
196 void gem_test_engine(int i915, unsigned int engine) in gem_test_engine() argument
205 i915 = gem_reopen_driver(i915); in gem_test_engine()
206 igt_assert(!is_wedged(i915)); in gem_test_engine()
208 obj.handle = gem_create(i915, 4096); in gem_test_engine()
209 gem_write(i915, obj.handle, 0, &bbe, sizeof(bbe)); in gem_test_engine()
214 __for_each_physical_engine(i915, e2) { in gem_test_engine()
216 gem_execbuf(i915, &execbuf); in gem_test_engine()
220 gem_execbuf(i915, &execbuf); in gem_test_engine()
[all …]
/external/minigbm/
Di915.c57 static void i915_info_from_device_id(struct i915_device *i915) in i915_info_from_device_id() argument
69 i915->gen = 4; in i915_info_from_device_id()
70 i915->is_adlp = false; in i915_info_from_device_id()
73 if (gen3_ids[i] == i915->device_id) in i915_info_from_device_id()
74 i915->gen = 3; in i915_info_from_device_id()
78 if (gen11_ids[i] == i915->device_id) in i915_info_from_device_id()
79 i915->gen = 11; in i915_info_from_device_id()
83 if (gen12_ids[i] == i915->device_id) in i915_info_from_device_id()
84 i915->gen = 12; in i915_info_from_device_id()
87 if (adlp_ids[i] == i915->device_id) { in i915_info_from_device_id()
[all …]

1234567