Lines Matching refs:ice

77 config_from_context(struct iris_context *ice)
79 return ((struct iris_screen *) ice->ctx.screen)->measure.config;
100 iris_init_batch_measure(struct iris_context *ice, struct iris_batch *batch)
102 const struct intel_measure_config *config = config_from_context(ice);
125 (uintptr_t)util_hash_crc32(&ice->state.framebuffer,
126 sizeof(ice->state.framebuffer));
141 measure_start_snapshot(struct iris_context *ice,
148 const struct intel_measure_config *config = config_from_context(ice);
149 const struct iris_screen *screen = (void *) ice->ctx.screen;
194 snapshot->cs = (uintptr_t) ice->shaders.prog[MESA_SHADER_COMPUTE];
196 snapshot->vs = (uintptr_t) ice->shaders.prog[MESA_SHADER_VERTEX];
197 snapshot->tcs = (uintptr_t) ice->shaders.prog[MESA_SHADER_TESS_CTRL];
198 snapshot->tes = (uintptr_t) ice->shaders.prog[MESA_SHADER_TESS_EVAL];
199 snapshot->gs = (uintptr_t) ice->shaders.prog[MESA_SHADER_GEOMETRY];
200 snapshot->fs = (uintptr_t) ice->shaders.prog[MESA_SHADER_FRAGMENT];
226 state_changed(const struct iris_context *ice,
233 cs = (uintptr_t) ice->shaders.prog[MESA_SHADER_COMPUTE];
235 vs = (uintptr_t) ice->shaders.prog[MESA_SHADER_VERTEX];
236 tcs = (uintptr_t) ice->shaders.prog[MESA_SHADER_TESS_CTRL];
237 tes = (uintptr_t) ice->shaders.prog[MESA_SHADER_TESS_EVAL];
238 gs = (uintptr_t) ice->shaders.prog[MESA_SHADER_GEOMETRY];
239 fs = (uintptr_t) ice->shaders.prog[MESA_SHADER_FRAGMENT];
248 iris_measure_renderpass(struct iris_context *ice)
250 const struct intel_measure_config *config = config_from_context(ice);
252 &ice->batches[IRIS_BATCH_RENDER].measure->base;
256 uint32_t framebuffer_crc = util_hash_crc32(&ice->state.framebuffer,
257 sizeof(ice->state.framebuffer));
263 measure_end_snapshot(&ice->batches[IRIS_BATCH_RENDER],
272 _iris_measure_snapshot(struct iris_context *ice,
280 const struct intel_measure_config *config = config_from_context(ice);
290 iris_measure_renderpass(ice);
292 if (!state_changed(ice, batch, type)) {
315 iris_get_shader_info(ice, MESA_SHADER_FRAGMENT);
331 measure_start_snapshot(ice, batch, type, event_name, count);
337 iris_destroy_ctx_measure(struct iris_context *ice)
342 struct iris_screen *screen = (struct iris_screen *) ice->ctx.screen;
347 iris_measure_batch_end(struct iris_context *ice, struct iris_batch *batch)
349 const struct intel_measure_config *config = config_from_context(ice);
350 struct iris_screen *screen = (struct iris_screen *) ice->ctx.screen;
382 iris_init_batch_measure(ice, batch);
392 iris_measure_frame_end(struct iris_context *ice)
394 struct iris_screen *screen = (struct iris_screen *) ice->ctx.screen;