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:
parent
80a8bb590a
commit
dd215c83d0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue