if (memcmp(tiling, &u->surface->tiling_info, sizeof(*tiling)) != 0) {
update_flags->bits.swizzle_change = 1;
- elevate_update_type(&update_type, UPDATE_TYPE_MED, LOCK_DESCRIPTOR_STREAM);
- switch (tiling->gfxversion) {
- case DcGfxVersion9:
- case DcGfxVersion10:
- case DcGfxVersion11:
- if (tiling->gfx9.swizzle != DC_SW_LINEAR) {
- update_flags->bits.bandwidth_change = 1;
- elevate_update_type(&update_type, UPDATE_TYPE_FULL, LOCK_DESCRIPTOR_GLOBAL);
- }
- break;
- case DcGfxAddr3:
- if (tiling->gfx_addr3.swizzle != DC_ADDR3_SW_LINEAR) {
- update_flags->bits.bandwidth_change = 1;
- elevate_update_type(&update_type, UPDATE_TYPE_FULL, LOCK_DESCRIPTOR_GLOBAL);
- }
- break;
- case DcGfxVersion7:
- case DcGfxVersion8:
- case DcGfxVersionUnknown:
- default:
- break;
+ if (tiling->flags.avoid_full_update_on_tiling_change) {
+ elevate_update_type(&update_type, UPDATE_TYPE_MED, LOCK_DESCRIPTOR_STREAM);
+ } else {
+ update_flags->bits.bandwidth_change = 1;
+ elevate_update_type(&update_type, UPDATE_TYPE_FULL, LOCK_DESCRIPTOR_GLOBAL);
}
}