Message ID | 20190507135644.23882-2-shashank.sharma@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Enable Multi-segmented-gamma for ICL | expand |
>-----Original Message----- >From: Sharma, Shashank >Sent: Tuesday, May 7, 2019 7:27 PM >To: intel-gfx@lists.freedesktop.org >Cc: Sharma, Shashank <shashank.sharma@intel.com>; Ville Syrjälä ><ville.syrjala@linux.intel.com>; Maarten Lankhorst ><maarten.lankhorst@linux.intel.com>; Shankar, Uma <uma.shankar@intel.com> >Subject: [PATCH v3 1/4] drm/i915: Change gamma/degamma_lut_size data type to >u32 > >Currently, data type of gamma_lut_size & degamma_lut_size elements in >intel_device_info is u16, which means it can accommodate maximum 64k values. In >case of ICL multisegmented gamma, the size of gamma LUT is 256K. > >This patch changes the data type of both of these elements to u32. Looks ok to me. Reviewed-by: Uma Shankar <uma.shankar@intel.com> >Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> >Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> >Cc: Uma Shankar <uma.shankar@intel.com> > >Signed-off-by: Shashank Sharma <shashank.sharma@intel.com> >--- > drivers/gpu/drm/i915/intel_device_info.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers/gpu/drm/i915/intel_device_info.h >b/drivers/gpu/drm/i915/intel_device_info.h >index 5a2e17d6146b..67677c356716 100644 >--- a/drivers/gpu/drm/i915/intel_device_info.h >+++ b/drivers/gpu/drm/i915/intel_device_info.h >@@ -179,8 +179,8 @@ struct intel_device_info { > int cursor_offsets[I915_MAX_PIPES]; > > struct color_luts { >- u16 degamma_lut_size; >- u16 gamma_lut_size; >+ u32 degamma_lut_size; >+ u32 gamma_lut_size; > u32 degamma_lut_tests; > u32 gamma_lut_tests; > } color; >-- >2.17.1
diff --git a/drivers/gpu/drm/i915/intel_device_info.h b/drivers/gpu/drm/i915/intel_device_info.h index 5a2e17d6146b..67677c356716 100644 --- a/drivers/gpu/drm/i915/intel_device_info.h +++ b/drivers/gpu/drm/i915/intel_device_info.h @@ -179,8 +179,8 @@ struct intel_device_info { int cursor_offsets[I915_MAX_PIPES]; struct color_luts { - u16 degamma_lut_size; - u16 gamma_lut_size; + u32 degamma_lut_size; + u32 gamma_lut_size; u32 degamma_lut_tests; u32 gamma_lut_tests; } color;
Currently, data type of gamma_lut_size & degamma_lut_size elements in intel_device_info is u16, which means it can accommodate maximum 64k values. In case of ICL multisegmented gamma, the size of gamma LUT is 256K. This patch changes the data type of both of these elements to u32. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com> --- drivers/gpu/drm/i915/intel_device_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)