iris: Support MC modifier in plane count queries

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6486>
This commit is contained in:
Nanley Chery 2020-04-15 16:47:46 -07:00 committed by Marge Bot
parent 80a8bb590a
commit dd215c83d0
1 changed files with 1 additions and 1 deletions

View File

@ -1145,7 +1145,7 @@ iris_resource_get_param(struct pipe_screen *pscreen,
switch (param) {
case PIPE_RESOURCE_PARAM_NPLANES:
if (mod_with_aux) {
*value = 2;
*value = 2 * util_format_get_num_planes(res->external_format);
} else {
unsigned count = 0;
for (struct pipe_resource *cur = resource; cur; cur = cur->next)