Lines Matching defs:res

75    struct iris_resource *res = (void *) p_res;
80 if (!isl_aux_usage_has_fast_clears(res->aux.usage))
116 if (!iris_render_formats_color_compatible(render_format, res->surf.format,
121 if (!iris_is_color_fast_clear_compatible(ice, res->surf.format, color))
137 res->aux.usage == ISL_AUX_USAGE_GFX12_CCS_E && p_res->width0 % 64) {
165 struct iris_resource *res,
172 struct pipe_resource *p_res = (void *) res;
174 bool color_changed = res->aux.clear_color_unknown ||
175 memcmp(&res->aux.clear_color, &color, sizeof(color)) != 0;
182 for (unsigned res_lvl = 0; res_lvl < res->surf.levels; res_lvl++) {
184 iris_get_num_logical_layers(res, res_lvl);
194 iris_resource_get_aux_state(res, res_lvl, layer);
209 iris_resource_prepare_access(ice, res,
211 res->aux.usage,
213 if (res->aux.clear_color_unknown) {
217 res, res_lvl, layer,
224 res, res_lvl, layer,
225 res->aux.clear_color.f32[0],
226 res->aux.clear_color.f32[1],
227 res->aux.clear_color.f32[2],
228 res->aux.clear_color.f32[3],
235 iris_resource_set_clear_color(ice, res, color);
241 iris_resource_get_aux_state(res, level, box->z);
281 p_res, res->aux.usage, level, true);
283 blorp_fast_clear(&blorp_batch, &surf, res->surf.format,
298 iris_resource_set_aux_state(ice, res, level, box->z,
315 struct iris_resource *res = (void *) p_res;
330 util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width);
338 fast_clear_color(ice, res, level, box, color);
343 iris_resource_render_aux_usage(ice, res, level, format, false);
345 iris_resource_prepare_render(ice, res, level, box->z, box->depth,
347 iris_emit_buffer_barrier_for(batch, res->bo, IRIS_DOMAIN_RENDER_WRITE);
370 iris_dirty_for_history(ice, res);
372 iris_resource_finish_render(ice, res, level,
378 struct iris_resource *res,
384 struct pipe_resource *p_res = (void *) res;
408 if (!iris_resource_level_has_hiz(res, level))
411 if (!blorp_can_hiz_clear_depth(devinfo, &res->surf, res->aux.usage,
423 struct iris_resource *res,
435 if (res->aux.clear_color_unknown || res->aux.clear_color.f32[0] != depth) {
436 for (unsigned res_level = 0; res_level < res->surf.levels; res_level++) {
438 iris_get_num_logical_layers(res, res_level);
448 iris_resource_get_aux_state(res, res_level, layer);
462 iris_hiz_exec(ice, batch, res, res_level, layer, 1,
464 iris_resource_set_aux_state(ice, res, res_level, layer, 1,
469 iris_resource_set_clear_color(ice, res, clear_value);
473 if (res->aux.usage == ISL_AUX_USAGE_HIZ_CCS_WT) {
492 iris_resource_get_aux_state(res, level, box->z + l);
498 iris_hiz_exec(ice, batch, res, level,
504 iris_resource_set_aux_state(ice, res, level, box->z, box->depth,
521 struct iris_resource *res = (void *) p_res;
546 iris_dirty_for_history(ice, res);
596 iris_dirty_for_history(ice, res);
699 struct iris_resource *res = (void *) p_res;
700 enum isl_format format = res->surf.format;
720 assert(res->aux.usage == ISL_AUX_USAGE_NONE);