mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
anv: Replace ANV_MAX_PLANES with ISL_MODIFIER_MAX_PLANES
As discussed in the reviews of cf5c294df4,
the 'plane' in this context means plane of a drm
modifier, so it makes sense to just use the new ISL
macro once it is available.
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36825>
This commit is contained in:
parent
33074e3ebe
commit
7dbff29de1
1 changed files with 2 additions and 3 deletions
|
|
@ -39,7 +39,6 @@
|
|||
#include "av1_tables.h"
|
||||
|
||||
#define ANV_OFFSET_IMPLICIT UINT64_MAX
|
||||
#define ANV_MAX_PLANES 4
|
||||
|
||||
static const enum isl_surf_dim
|
||||
vk_to_isl_surf_dim[] = {
|
||||
|
|
@ -2350,11 +2349,11 @@ resolve_ahb_image(struct anv_device *device,
|
|||
VkResult result;
|
||||
|
||||
VkImageDrmFormatModifierExplicitCreateInfoEXT mod_explicit_info;
|
||||
VkSubresourceLayout layouts[ANV_MAX_PLANES];
|
||||
VkSubresourceLayout layouts[ISL_MODIFIER_MAX_PLANES];
|
||||
result = vk_android_get_ahb_layout(mem->vk.ahardware_buffer,
|
||||
&mod_explicit_info,
|
||||
layouts,
|
||||
ANV_MAX_PLANES);
|
||||
ISL_MODIFIER_MAX_PLANES);
|
||||
if (result == VK_SUCCESS &&
|
||||
mod_explicit_info.drmFormatModifier != DRM_FORMAT_MOD_INVALID) {
|
||||
const struct isl_drm_modifier_info *isl_mod_info =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue