[Intel-xe] [PATCH 4/6] drm/xe/mocs: Drop duplicate assignment of uc_index
Lucas De Marchi
lucas.demarchi at intel.com
Wed Feb 22 23:39:32 UTC 2023
On Thu, Feb 16, 2023 at 03:17:22PM -0800, Matt Roper wrote:
>The DG1 branch needlessly assigns uc_index twice. Drop the second
>instance.
>
>Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/xe/xe_mocs.c | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
>index 583e198af88d..696001f60259 100644
>--- a/drivers/gpu/drm/xe/xe_mocs.c
>+++ b/drivers/gpu/drm/xe/xe_mocs.c
>@@ -352,7 +352,6 @@ static unsigned int get_mocs_settings(struct xe_device *xe,
> info->table = dg1_mocs_desc;
> info->uc_index = 1;
> info->n_entries = GEN9_NUM_MOCS_ENTRIES;
>- info->uc_index = 1;
> info->unused_entries_index = 5;
> break;
> case XE_TIGERLAKE:
>--
>2.39.1
>
More information about the Intel-xe
mailing list