mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
iris: Drop stale media compression import code
With commit f57c074270,
("gallium/dri: Allow use of R8G8_R8B8 for YUYV and G8R8_B8R8 for UYVY"),
iris stopped lowering media compressed surfaces to multiple planes.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14355>
This commit is contained in:
parent
cc973de5f6
commit
37a0185ec2
1 changed files with 2 additions and 8 deletions
|
|
@ -1003,18 +1003,12 @@ iris_resource_finish_aux_import(struct pipe_screen *pscreen,
|
|||
if (num_main_planes == 1 && num_planes == 2) {
|
||||
import_aux_info(r[0], r[1]);
|
||||
map_aux_addresses(screen, r[0], format, 0);
|
||||
} else if (num_main_planes == 2 && num_planes == 4) {
|
||||
} else {
|
||||
assert(num_main_planes == 2 && num_planes == 4);
|
||||
import_aux_info(r[0], r[2]);
|
||||
import_aux_info(r[1], r[3]);
|
||||
map_aux_addresses(screen, r[0], format, 0);
|
||||
map_aux_addresses(screen, r[1], format, 1);
|
||||
} else {
|
||||
/* Gallium has lowered a single main plane into two. */
|
||||
assert(num_main_planes == 2 && num_planes == 3);
|
||||
assert(isl_format_is_yuv(format) && !isl_format_is_planar(format));
|
||||
import_aux_info(r[0], r[2]);
|
||||
import_aux_info(r[1], r[2]);
|
||||
map_aux_addresses(screen, r[0], format, 0);
|
||||
}
|
||||
assert(!isl_aux_usage_has_fast_clears(res->mod_info->aux_usage));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue